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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97B64C432C0 for ; Mon, 18 Nov 2019 12:31:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6382820862 for ; Mon, 18 Nov 2019 12:31:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6382820862 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 0598C6B000C; Mon, 18 Nov 2019 07:31:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 031C06B0010; Mon, 18 Nov 2019 07:31:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EAFF36B0266; Mon, 18 Nov 2019 07:31:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0150.hostedemail.com [216.40.44.150]) by kanga.kvack.org (Postfix) with ESMTP id D63906B000C for ; Mon, 18 Nov 2019 07:31:58 -0500 (EST) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 84FCD181AC9C6 for ; Mon, 18 Nov 2019 12:31:58 +0000 (UTC) X-FDA: 76169335116.13.cent98_2e38307841e4f X-HE-Tag: cent98_2e38307841e4f X-Filterd-Recvd-Size: 3791 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Mon, 18 Nov 2019 12:31:57 +0000 (UTC) X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R381e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04407;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=38;SR=0;TI=SMTPD_---0TiTa-iK_1574080310; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TiTa-iK_1574080310) by smtp.aliyun-inc.com(127.0.0.1); Mon, 18 Nov 2019 20:31:52 +0800 Subject: Re: [PATCH v3 3/7] mm/lru: replace pgdat lru_lock with lruvec lock To: Matthew Wilcox 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, Johannes Weiner , Michal Hocko , Vladimir Davydov , Roman Gushchin , Shakeel Butt , Chris Down , Thomas Gleixner , Vlastimil Babka , Qian Cai , Andrey Ryabinin , "Kirill A. Shutemov" , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Andrea Arcangeli , David Rientjes , "Aneesh Kumar K.V" , swkhack , "Potyra, Stefan" , Mike Rapoport , Stephen Rothwell , Colin Ian King , Jason Gunthorpe , Mauro Carvalho Chehab , Peng Fan , Nikolay Borisov , Ira Weiny , Kirill Tkhai , Yafang Shao References: <1573874106-23802-1-git-send-email-alex.shi@linux.alibaba.com> <1573874106-23802-4-git-send-email-alex.shi@linux.alibaba.com> <20191116043806.GD20752@bombadil.infradead.org> <0bfa9a03-b095-df83-9cfd-146da9aab89a@linux.alibaba.com> <20191118121451.GG20752@bombadil.infradead.org> From: Alex Shi Message-ID: <296c7202-930e-4027-2e92-b8c64a908d88@linux.alibaba.com> Date: Mon, 18 Nov 2019 20:31:50 +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: <20191118121451.GG20752@bombadil.infradead.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: =E5=9C=A8 2019/11/18 =E4=B8=8B=E5=8D=888:14, Matthew Wilcox =E5=86=99=E9=81= =93: >> Hi Matthew, >> >> Thanks for comments! >> >> Here, the irqflags is bound, and belong to lruvec, merging them into t= ogether helps us to take them as whole, and thus reduce a unnecessary cod= e clues. > It's not bound to the lruvec, though. Call chain A uses it and call ch= ain > B doesn't. If it was always used by every call chain, I'd see your poi= nt, > but we have call chains which don't use it, and so it adds complexity. Where is the call chain B, please? >=20 >> As your concern for a 'new' caller, since __split_huge_page is a stati= c helper here, no distub for anyothers. > Even though it's static, there may be other callers within the same fil= e. > Or somebody may decide to make it non-static in the future. I think it= 's > actually clearer to keep the irqflags as a separate parameter. >=20 But it's no one else using this function now. and no one get disturb, rig= ht? It's non sense to consider a 'possibility' issue.