From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81432C433FE for ; Thu, 13 Oct 2022 15:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JldSdELhks3J+cp7KheAIeRvB0wFYymwKkg7gByJjM8=; b=dTVzvTsEN9VXa3 da092bJnTvKGfOY9KMqEUQla1YvSGTo0uWekgrzeFjxqHg6DEf/IOdp+dyYFLXoRoC41Zshprw2nK 822MroVjSJZ8NQmNIPtFcJxSs0syIEmG1Nw65Zd7TyNrnbpEh1o/rAFrvJhfiqGDR19grGT0qpCUf TP/4+mAheS390sZTd4VbRNjISDOhMnJTELldOw3HMYDFZ+HTfXTY+zxEQH1eiKZi/huouc5nZNkii h7+H3h51nFYb8ZCGEWZHjtc82TEw6DD17tWDQJ66WMT8Ul1EnRdo+Hzi3ahQGGLXdTcq978n5zyd+ 0wvlFgPbICt9Ikisqs4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oizlI-00CDhc-Uz; Thu, 13 Oct 2022 15:04:41 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oizlI-00CDhP-05 for linux-arm-kernel@bombadil.infradead.org; Thu, 13 Oct 2022 15:04:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=u/yanSpQBsDeBmQh9RGkX0Jb1t4uGPjofYGMl0NSrBE=; b=DibP47fuq7FMfHRrPVlaGSjQhm C5E5TSowkWHxK95Vr5n8gif18WSiSNP7x2IMnsLGnMxD5JhdxGM2DbDqnwgNqclhu+vaMWayo83i5 kTCyuNd8G61OCxOuf/YvgHvQJtP1ocM28FCJGwEJSTa6TEzOxJxRDcuISy2Gm0gZkPVeMUCHtcrEl B4WTT7fVfi6JqsDUeEmktXT/Y0A8yJ5LJliY/xY12YNWK9TGsJsW95SdQCNfw43ryYNsIZLwvwwWX UpB6b0MFjZO2mVIPBLC/YMIED/uyk9+ChNWYXtfSdZXxLBxydfqTpADE3zrzqhgFCo8VieXPDRcQA dBXGWFnA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oizl5-006nU4-7E; Thu, 13 Oct 2022 15:04:27 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id E75713001CB; Thu, 13 Oct 2022 17:04:19 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AA9922B634088; Thu, 13 Oct 2022 17:04:19 +0200 (CEST) Date: Thu, 13 Oct 2022 17:04:19 +0200 From: Peter Zijlstra To: Yu Zhao Cc: Andrew Morton , Andi Kleen , Aneesh Kumar , Catalin Marinas , Dave Hansen , Hillf Danton , Jens Axboe , Johannes Weiner , Jonathan Corbet , Linus Torvalds , Matthew Wilcox , Mel Gorman , Michael Larabel , Michal Hocko , Mike Rapoport , Tejun Heo , Vlastimil Babka , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, page-reclaim@google.com, Brian Geffon , Jan Alexander Steffens , Oleksandr Natalenko , Steven Barrett , Suleiman Souhlal , Daniel Byrne , Donald Carr , Holger =?iso-8859-1?Q?Hoffst=E4tte?= , Konstantin Kharlamov , Shuang Zhai , Sofia Trinh , Vaibhav Jain Subject: Re: [PATCH v14 08/14] mm: multi-gen LRU: support page table walks Message-ID: References: <20220815071332.627393-1-yuzhao@google.com> <20220815071332.627393-9-yuzhao@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220815071332.627393-9-yuzhao@google.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Aug 15, 2022 at 01:13:27AM -0600, Yu Zhao wrote: > + for (i = pmd_index(start), addr = start; addr != end; i++, addr = next) { > + pmd_t val = pmd_read_atomic(pmd + i); > + > + /* for pmd_read_atomic() */ > + barrier(); Please clarify the above. This is an entirely inadequate ordering comment. > + > + next = pmd_addr_end(addr, end); _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel