Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp343111ybc; Tue, 19 Nov 2019 02:16:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzZXSAIxegkZFLl5+Y3+5NgiFfZNRBJA5wCef7rX40jLF++k+ycfIL2s9NP9wHSk2+nySl7 X-Received: by 2002:a17:907:20d2:: with SMTP id qq18mr33841597ejb.305.1574158574560; Tue, 19 Nov 2019 02:16:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574158574; cv=none; d=google.com; s=arc-20160816; b=oYx4iXjoYk8zRebb3usT3VLaKyCPN3tOJiwfq8R2Zbg+WsVgZU0rVoM0gV5giJ+dnA oacm52KtQ0Pda6MyPVamthPXD3Li0cyRZLSOGnJFX3uEhoNJiYC9GYKXjqk4hN98kofn bG1HhrTuSG8ZEXyFzhvtG9ApSrTUsntC+DqjryiRBuuthGR+6fVOMqs1hupDnJx+NKZO gttlK7HH7BPpYs8Zowblxl/qeM8GMbt+TDl5gF+d6xOLgQSkQboUktGVzHmL6hqDOIgX FE4GhqfnSWa8nynqqQOSFHQWb+/NkFz3mWE2SJZdgOsiBPYkim7Zoa0CZB6LBGpmEj/l mxmQ== 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=64ZH5tAqrT72S9RXxNc8xx4WAZFc/2dC18dPNAn/3BI=; b=REsLAnZxOG+45dFOCCYp+AOC8q0eTByD6hIL4VonnnbzOgy1aN/BnK7fXiic9fJl50 o1C5/IJZRtRniBNftwRCSa936swDDBwjo4A5v8b3z+aNG0vJT7+HZE6OFvT1rQ0HcUCL TOWkosVtY9c6jtw+ACKU619yngAXfkybp0mSJrBq4tnl4axKC3iCQOIxYN2gBiMLdpTU kMl93avfEp9d51cxybEIP39hxYz+Q8W+2oJJ2BJof27DrTmhDW7u7TBC2Z5sqYIEbH3f +7bIdHlvQTIiuZjkfqPSl45v0R6lwDYIjZDdp6ypFHTAPFyhYvBEsy4v8KbcFNQ0Bp4d QhpQ== 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 1si13863111ejt.404.2019.11.19.02.15.48; Tue, 19 Nov 2019 02:16:14 -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 S1727316AbfKSKOl (ORCPT + 99 others); Tue, 19 Nov 2019 05:14:41 -0500 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:52811 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbfKSKOl (ORCPT ); Tue, 19 Nov 2019 05:14:41 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R911e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07488;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=38;SR=0;TI=SMTPD_---0TiYQecG_1574158466; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TiYQecG_1574158466) by smtp.aliyun-inc.com(127.0.0.1); Tue, 19 Nov 2019 18:14:27 +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> <296c7202-930e-4027-2e92-b8c64a908d88@linux.alibaba.com> <20191118123452.GM20752@bombadil.infradead.org> From: Alex Shi Message-ID: <45d33a1f-07a2-c0f5-d715-ef3396b1e9c1@linux.alibaba.com> Date: Tue, 19 Nov 2019 18:14:26 +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: <20191118123452.GM20752@bombadil.infradead.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > >>>> As your concern for a 'new' caller, since __split_huge_page is a static helper here, no distub for anyothers. >>> Even though it's static, there may be other callers within the same file. >>> 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. >>> >> >> But it's no one else using this function now. and no one get disturb, right? It's non sense to consider a 'possibility' issue. > > It is not nonsense to consider the complexity of the mm! Your patch makes > it harder to understand unnecessarily. Please be considerate of the other > programmers who must build on what you have created. > I believe the 'flags' parameter are using __split_huge_page is just for irqsave/restore of lru_lock, so move it into lruvec should be reduce the parameter jumping in caller/callee. But in another side, the flags opitimze isn't close related with lru_lock change, and better to be split out. So thanks for your comments, I will remove this part for this patchset. Thanks! Alex