Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4134699ybl; Tue, 20 Aug 2019 07:29:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPDcaihW+7B4zFOZJt59eJ3wmKDwkOy51cXy1Q6CvwiVExnspLmO8zjki6rosFCBnLecz0 X-Received: by 2002:aa7:9a5a:: with SMTP id x26mr29410082pfj.47.1566311377524; Tue, 20 Aug 2019 07:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566311377; cv=none; d=google.com; s=arc-20160816; b=lEFVXnyj92wi8CCv8Eqtg2YuKT9UgCFxpP+/CzM88Tt3+F1fiqIkq1fZ9gJjl37t6Y eGcVXcF6S9E+VZObwQlyp0pI/L2+jEPXRYEYQzhChTb7Hrc2iFoGuUjujCdVbwcQ8afm wS2Z/MK2UfcPmpkpj4GbErCqeCUQRlUzJUVmAwOunhJOrQl+/ADrdJX5CvA7pTPApulr /L8eR21Xe1RbPWeHvgzBVqyX2q6RqJ4GXMW7/jLW+y0yV2UiyIeNQIn3kUS7r0mcySTQ xsyixcS4CA1mNeDO0aqvJdjxKw307TJ3nTraDulG3brck0zQ4zTUdNxHg0uEcQfylw8c wfBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=2YY5F+XLYMcoyOMIOrKq78kLWh/55LHj0gVO1TWajwc=; b=Mw4qh9sitm8xoj6x9vtLeUVTiTDXacnXjplOE1A6YQcB2JloJ+kadnGXMZCUHXwdZY h+FBqXJlClC0q4aXe1VsJbxYIyWikY0p0Fxgeib12kod5tSUojAq86w/6jkBRoXTqZXj xHhswvKUZJFKegcxhibDvI4u3S3WO4eftoJHTCcEivBVgJ4yrLPua2fxW63b2JOZqAMy ytC8VMW1K0BzEHkUHeqwyDME7vberLUcpZ9oAyNRRh48Ob7R1Pk63ObT27e5HO9k+QiC AC3Ep64QmVsPb7ERKT6gGJlmu85ewM1T7FUkKSEmpbQKlW+oDEnGSEp2rwgSOQiUMnuM BUTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u19si12327538pgf.531.2019.08.20.07.29.21; Tue, 20 Aug 2019 07:29:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730348AbfHTO11 (ORCPT + 99 others); Tue, 20 Aug 2019 10:27:27 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:44765 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728770AbfHTO11 (ORCPT ); Tue, 20 Aug 2019 10:27:27 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=36;SR=0;TI=SMTPD_---0Ta-z0CR_1566310900; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0Ta-z0CR_1566310900) by smtp.aliyun-inc.com(127.0.0.1); Tue, 20 Aug 2019 22:21:42 +0800 Subject: Re: [PATCH 14/14] mm/lru: fix the comments of lru_lock To: Matthew Wilcox Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Mel Gorman , Tejun Heo , Jason Gunthorpe , Dan Williams , Vlastimil Babka , Ira Weiny , Jesper Dangaard Brouer , Andrey Ryabinin , Jann Horn , Logan Gunthorpe , Souptick Joarder , Ralph Campbell , "Tobin C. Harding" , Michal Hocko , Oscar Salvador , Wei Yang , Johannes Weiner , Pavel Tatashin , Arun KS , "Darrick J. Wong" , Amir Goldstein , Dave Chinner , Josef Bacik , "Kirill A. Shutemov" , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Mike Kravetz , Hugh Dickins , Kirill Tkhai , Daniel Jordan , Yafang Shao , Yang Shi References: <1566294517-86418-1-git-send-email-alex.shi@linux.alibaba.com> <1566294517-86418-15-git-send-email-alex.shi@linux.alibaba.com> <20190820140019.GB24642@bombadil.infradead.org> From: Alex Shi Message-ID: Date: Tue, 20 Aug 2019 22:21:39 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190820140019.GB24642@bombadil.infradead.org> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2019/8/20 ????10:00, Matthew Wilcox ะด??: > On Tue, Aug 20, 2019 at 05:48:37PM +0800, Alex Shi wrote: >> @@ -159,7 +159,7 @@ static inline bool free_area_empty(struct free_area *area, int migratetype) >> struct pglist_data; >> >> /* >> - * zone->lock and the zone lru_lock are two of the hottest locks in the kernel. >> + * zone->lock and the lru_lock are two of the hottest locks in the kernel. >> * So add a wild amount of padding here to ensure that they fall into separate >> * cachelines. There are very few zone structures in the machine, so space >> * consumption is not a concern here. > > But after this patch series, the lru lock is no longer stored in the zone. > So this comment makes no sense. Yes, It's need reconsider here. thanks for opoint out. > >> @@ -295,7 +295,7 @@ struct zone_reclaim_stat { >> >> struct lruvec { >> struct list_head lists[NR_LRU_LISTS]; >> - /* move lru_lock to per lruvec for memcg */ >> + /* perf lruvec lru_lock for memcg */ > > What does the word 'perf' mean here? sorry for typo, could be s/perf/per/ here. Thanks Alex