Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp730868ybc; Tue, 19 Nov 2019 08:21:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzjl1KssVbHMxycoxxcOf0pSQEv04qy0TwObyJRDBXjHqNy/LHfCpp1xzL4h/F9RTdslopL X-Received: by 2002:a17:907:20b4:: with SMTP id pw20mr34889803ejb.83.1574180503193; Tue, 19 Nov 2019 08:21:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574180503; cv=none; d=google.com; s=arc-20160816; b=agXyDQCk0piFuzpixyTNjbwGEYFJU/VRChcYV4VuQBgROL98fOsRAGi1YCwOLphPUJ T+0uytFkgCnW5votH+nER7QyAB1ymA7MwO7BX+zMJ7aQFj7G+JW3LmcuNdnzwonErZoV j0ZpNsM4Zb3RGOsktV56tHRXhQHp7jQQ0g1doiiYYmkfn8qbpk0VcdYU6zpSiB3CZ1Mz mIIf0LG9jlKocCeJ+yC4PoQGlbUqEzQsPGP3XpG/m55R0HxDX3pcoXV3Cem+Gfq97qnV rnviUwiMiypBSIEVv7aVgNidHDtYSaiUP5a0bW2ZRoz1aAi2cLnSp6p+rI1aSB/K4H+C 5aMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=P9Nm0dmtDONqzZOiG8f0kC+bAXI7b+Ydc24QnuYX/wc=; b=qWL1PR+pAfMH4SylpSL7bXmm6+vnNUmy/g1nQ1AQYBcunewrRC8sm4dnetkkH/j1sn vMdwSUzg3Gf7FRGwxwOX7r5bRknN1xrNKOVpfqVI6WTwpx1IkhOrQbEXqQ4BYXAE8bdQ 8hRbpDmi+uB1zxl54fS7zXgVVVTzGk54Tyz8jOeOmhSKHQoE4FgI96YNIV33QDvWgN/A wj3zuEexBxHKdKHmAGSdBp9CBT5ci+Om7X6cTHdt+/5/3pg3E9EzDLyMky80DjC4maTn evZ4yKVkjqRU8XHFBOvxXLexOmXFRzacql9vZsUMrgseOlKD2yhhhfabwRbP8CxYDQsa sGGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=z9ODofZL; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si14385179ejn.147.2019.11.19.08.21.18; Tue, 19 Nov 2019 08:21:43 -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; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=z9ODofZL; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727909AbfKSQUB (ORCPT + 99 others); Tue, 19 Nov 2019 11:20:01 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:38773 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727456AbfKSQUB (ORCPT ); Tue, 19 Nov 2019 11:20:01 -0500 Received: by mail-qk1-f193.google.com with SMTP id e2so18320146qkn.5 for ; Tue, 19 Nov 2019 08:20:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=P9Nm0dmtDONqzZOiG8f0kC+bAXI7b+Ydc24QnuYX/wc=; b=z9ODofZLwVJ5kMknpHKRESiJDZBNi3Pyza7Lc9GUeJNHofrQ86wibU3eFnsO2CVIu+ IfAgM62vq+764hz0qZ7RurgWgkiidhrvNyqW6ve6XTcrt1pa0T+IBaQFh6GvVNqcIXBF Ufy2rTPODX34yXNizSAi3WtQarGWeLPCoeXXJKP8I0Cb0CRRWpEy9NOqkoaP9VmwY9h1 cD8j9AgPTXAvnN73paddQAX1/NUY7TjJhO4MrEwcGMLbJNfqlaFEN76hxgxI1sUPxUoF rpTdJBr0sBkYiM5s7RkzXWL86X/Ms+STXj4E4DantEgdps6LghwvRYO6bCdspBkQ3lot zPnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=P9Nm0dmtDONqzZOiG8f0kC+bAXI7b+Ydc24QnuYX/wc=; b=cPcVmPESdwZWtAszsqv0L9QKddxiXVRRAQ0PpBObbnMs4eCrpU5mwTTKbZIXisUOwB 454xM1QMsDZ/wE3gjp//+ADGJo5KW1zyUGLFt+GOAYmzUruN6SRexIS+jJgQxsJ+JyzU foAvPJUKaYUWEJ50eecmooD7shD+61X17z9avWBR0gsU+87TyvQ+QEf8Km9cJ0RWEjHP 2P+ddDucOIOsaxMyZPUxXnMLheX/x8UJTWKeEKwkD/zThosoP01xTawdne3IuuM8hPFm gXiMQQphhMpirSFXJYwAq1Cz4aeKhc1CVnZsqmjQBF0mjxk/IZAFAxUkeLZ/oYf5T0iQ 72SA== X-Gm-Message-State: APjAAAX1y6r44JwVV1bOb6rxQtgO+/yDaxfK9YvBNVrVuGgoIvjcQD7E pn7eHzkyvmjtjoBO6tRFBCiwjA== X-Received: by 2002:a05:620a:226:: with SMTP id u6mr29793788qkm.393.1574180400357; Tue, 19 Nov 2019 08:20:00 -0800 (PST) Received: from localhost ([2620:10d:c091:500::c7ac]) by smtp.gmail.com with ESMTPSA id a7sm10253897qka.136.2019.11.19.08.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 08:19:59 -0800 (PST) Date: Tue, 19 Nov 2019 11:19:58 -0500 From: Johannes Weiner To: Alex Shi 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" , =?iso-8859-1?B?Suly9G1l?= Glisse , Mike Kravetz , Kirill Tkhai , Yafang Shao Subject: Re: [PATCH v4 9/9] mm/lru: revise the comments of lru_lock Message-ID: <20191119161958.GE382712@cmpxchg.org> References: <1574166203-151975-1-git-send-email-alex.shi@linux.alibaba.com> <1574166203-151975-10-git-send-email-alex.shi@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1574166203-151975-10-git-send-email-alex.shi@linux.alibaba.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ---