Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1792869ybc; Wed, 20 Nov 2019 04:16:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxhcccrLtCKBcxnk0CyxVxabKhdsFg6IulyxH7yjgorocqQZYmb7qbmD6Dqmix5hhQpYheL X-Received: by 2002:a1c:67d7:: with SMTP id b206mr2819832wmc.68.1574252195643; Wed, 20 Nov 2019 04:16:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574252195; cv=none; d=google.com; s=arc-20160816; b=ASow6/S62NR/yCabgwCoWr8jI1A/AIxKbwr0l2aTY4ZAvXoCR9MQGVc0A9MFTG8xos 63wza6vozxfAIt+tU/y5f1rjsAjKcYC8WIyychr/miI54Otw4LDWP8QQVFjumBXyUFZo fKMwo9IGp4OK+xStb6NAJMKwu2HVdOEbSSDfJ2MRFNrgwJgqvSLMc9hw2BdIagZDf0Wo d6x7ZEY92vKfckyIVUnDK/qdj8A0PFGOELIaV2+abMLvynf8SwpsXUTJXh9JYvLTgRWb rVj36khGOIFY+o61l25V4ofzFZQjCLeadQMWbVyz6EH2M8uCUcEnZbPN8SlwnBekIt5T /vgg== 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=vZvM6kLLR7lZE9Aa32KOaqBaBrZbB0OTHpyan4nbT7U=; b=ijXQfyfBzjkX3peRYoA5Qrz7jinLe+IZRSu6ehBAR/ZY/6HGIVAJU1VO4q1ZjKKIPt 1JfTP9vqgMdZknJBau725iEX+A2Cqlbtox39ZBpdxDjHETG5geyVth8OXy6R3zlOdTO/ 3QNeG+FMHCsokHzme5ab97wB/I2d1CmWrQeYni95QZZ0eCT4tA04gyzeJPp7WDpmn4bD PfF2QKKE6Lesg3xV0tgws7pY7DWFwZqwST//qyBUvtYlU4VUvBpPmBeYnzIYXRuvT/UF dKrOTsxVcnyjgV1D/rGlIdAhIjmn5jMbGKp5R/stuxQyxTWMI7CG5ZnNTq2ZPUKc1lR3 9rbw== 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 x50si18741817eda.155.2019.11.20.04.16.09; Wed, 20 Nov 2019 04:16:35 -0800 (PST) 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 S1728711AbfKTLtI (ORCPT + 99 others); Wed, 20 Nov 2019 06:49:08 -0500 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:46325 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727619AbfKTLtH (ORCPT ); Wed, 20 Nov 2019 06:49:07 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07486;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=37;SR=0;TI=SMTPD_---0Tie.IxI_1574250537; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0Tie.IxI_1574250537) by smtp.aliyun-inc.com(127.0.0.1); Wed, 20 Nov 2019 19:48:58 +0800 Subject: Re: [PATCH v4 9/9] mm/lru: revise the comments of lru_lock To: Johannes Weiner Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, mgorman@techsingularity.net, tj@kernel.org, hughd@google.com, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, yang.shi@linux.alibaba.com, willy@infradead.org, shakeelb@google.com, 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 , Arun KS , "Darrick J. Wong" , Amir Goldstein , Dave Chinner , Josef Bacik , "Kirill A. Shutemov" , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Mike Kravetz , Kirill Tkhai , Yafang Shao References: <1574166203-151975-1-git-send-email-alex.shi@linux.alibaba.com> <1574166203-151975-10-git-send-email-alex.shi@linux.alibaba.com> <20191119161958.GE382712@cmpxchg.org> From: Alex Shi Message-ID: Date: Wed, 20 Nov 2019 19:48:57 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191119161958.GE382712@cmpxchg.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/11/20 ????12:19, Johannes Weiner ะด??: > On Tue, Nov 19, 2019 at 08:23:23PM +0800, Alex Shi wrote: >> Since we changed the pgdat->lru_lock to lruvec->lru_lock, it's time to >> fix the incorrect comments in code. Also fixed some zone->lru_lock comment >> error from ancient time. etc. >> >> Originally-from: Hugh Dickins > > You can resubmit a patch written by somebody else, but you need to > preserve authorship such that git can attribute it properly: > > From: Hugh Dickins > > in the patch header, as well as > > Signed-off-by: Hugh Dickins > > in the changelog tags. It should look something like this: > > --- > From: Hugh Dickins > Subject: [PATCH] mm/memcg: update lru_lock Doc and comments > > Update scattered references from "zone_lru_lock" to "lruvec->lru_lock" > (in low-level descriptions) or "lruvec lock" (where that reads better). > > In the course of doing so, update lock ordering comments in mm/rmap.c > and mm/filemap.c and Documentation/cgroups/memory.txt - slightly, with > no attempt to be complete (swap_lock, in particular, left out-of-date). > Remove allusions to set_page_dirty under page_remove_rmap: gone in v3.9. > > memcg_test.txt looks quite out-of-date: just give LRU a short paragraph. > Replaced zone by node throughout unevictable-lru.txt (except for stats). > Leave Documentation/locking/lockstat.txt untouched this time: it doesn't > matter if that still refers to zone->lru_lock, along with other history. > > I struggled to understand the comment above move_pages_to_lru() (surely > it never calls page_referenced()), and eventually realized that most of > it had got separated from shrink_active_list(): move that comment back. > > Signed-off-by: Hugh Dickins > Signed-off-by: Alex Shi > --- > Thanks for teaching!