Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1067887rwi; Thu, 13 Oct 2022 08:39:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM739+ksf5NCmCPslq+Gs0BL8to+/WQuG0Tcgsh0IKltVAjT3n5dB6aVxK2gKWU3MRBlvQde X-Received: by 2002:a17:907:7f8b:b0:78d:eed2:acc3 with SMTP id qk11-20020a1709077f8b00b0078deed2acc3mr262580ejc.105.1665675593902; Thu, 13 Oct 2022 08:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665675593; cv=none; d=google.com; s=arc-20160816; b=miRi2XcZ+K0T4Rm5Cccn6tj724JKGO1tf/y+yZ+2ywMvHsn5P78TP/qkBaSvMJgeY1 LebCJ9cEvyr0g3s9WImthRQyK+Bq+g8Z/SBX44B+wDZvEElcyhgoi/zbvlfjk/C721bf tm9290hdY/Ib6hMGbibGj3ixO8LFeGdT+vNu1UeZwHMLDnxBYG6h+W7fbcWEdVrlgle8 674bK/ffDBqhdceyFyozC2KQZ20LpNgf+EhDySvQDVtZO0j+lJW9QwgC/iZB1X0805Jj hPO3UtW+ghBGvTVUuiQ2DnApPYS0aTpzQJfAlvRjDtwesBHtoOkMV+QAC5p5RRNTtUD3 gEsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=u/yanSpQBsDeBmQh9RGkX0Jb1t4uGPjofYGMl0NSrBE=; b=wGLi7NVbCD/Mw73njH3DHy/NvshPHxDw8I9MFA16bN7IlnlBqTkV/M584LG8d04MDz KRsxiEr4O2gumPOWnr0hQj1F/FBB4AvP4vAvunt4pZ05sT/o4D9rIcw4/JpobP2vgCHf sDqfljSzFZzG1yN1zmWp6gdIM18Ele/zAE4GeB1SDeU3OOI20sA7HRSQQBt8vi7uYPzO YYfSHCLNqirFalX9JWpJL6Ba6THYbpHuRf2Oa9LExDsf4Yp3yWEtYXBijh0URhxWANx6 WNuJOEefdwGyfYE3b6+AMeU+wP4DRlYUmu4Wu7adCTOjznAOaW4B9pjt4KoVJX58V3UH 6rGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DibP47fu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne5-20020a1709077b8500b0078d8bd255d4si19868142ejc.949.2022.10.13.08.39.24; Thu, 13 Oct 2022 08:39:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DibP47fu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbiJMPFV (ORCPT + 99 others); Thu, 13 Oct 2022 11:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiJMPFU (ORCPT ); Thu, 13 Oct 2022 11:05:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A87D6AEBD; Thu, 13 Oct 2022 08:05:17 -0700 (PDT) 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220815071332.627393-9-yuzhao@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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);