Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2777157ybc; Mon, 18 Nov 2019 04:35:48 -0800 (PST) X-Google-Smtp-Source: APXvYqxvnK77E9qOYMHL0AwIB814A7bVBL46zTba1DV14dSVdhknOaw93lRcg9Zp/Q706Nyocj0/ X-Received: by 2002:a7b:c92e:: with SMTP id h14mr21353298wml.29.1574080548217; Mon, 18 Nov 2019 04:35:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574080548; cv=none; d=google.com; s=arc-20160816; b=f52jyYM68zEo2HQdXuiE/a4JAHgaXyObEvcrVjkpRdtG29XUl574sqMU5u95mmo2/m 1X0JaW3molYZw7gbCslL9/fREkf0j/n4IznswKNPbpFZFZkRRlu4IL1TPjJC1N6++BIL To9SJ06cnRIfad+eudnvtuMyJBa3/Qqc8rpHZ4FBH9xCEKQcP7DvsjXFiMh+whKjS4lp 11PXwVkg9k6XiRKhimudjlhnxrmfLQsavMFA8IcbKk87cXlhO+OfqBLyGSXxdLNuKShq JNhoCarbLLaMX6ubADbVlv7cnJBT5btWYVjUjejqLElpg9Qs078Kcvdzx0IEt86Jgv4W /aLA== 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=j9ybjee1NoidHKtqiv/Chqqteapb8jCo8IjXs6J3QYA=; b=EI24///08JTlJaRDR9aRMMZ+0yO8TzSvMKdKY/PlDl5bTKrAUgybloF3yOz8bi2AtZ XO4TI2DJeSLGEjAjOWjkjTv1nfNVhrd/ViOcgvLCDcWTRrTGzyjadV5mGKqxRKpzoPO1 dpyh766GagNKkpC98bEsr5MCVXcsVPNUU8K5lkS6PQWY8onD/wfcCLUefbUZCJRBn18D FGNXhGfWCJr0Chzx2ZNzAF6UU2pklW2v2Dr1TaidkP06H3ypfU+iBYhTfJkP9qr2ztc7 eeeWlUnI0dmVxbQ0Kn7cnqS6mE/mMpAZmUUC6WCR8hum9ZIyJ4+k9sFMxVuItf4Dcf6s BmYA== 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 g24si12395212edv.239.2019.11.18.04.35.24; Mon, 18 Nov 2019 04:35:48 -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 S1726775AbfKRMcF (ORCPT + 99 others); Mon, 18 Nov 2019 07:32:05 -0500 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:49299 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbfKRMcE (ORCPT ); Mon, 18 Nov 2019 07:32:04 -0500 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: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2019/11/18 下午8:14, Matthew Wilcox 写道: >> Hi Matthew, >> >> Thanks for comments! >> >> Here, the irqflags is bound, and belong to lruvec, merging them into together helps us to take them as whole, and thus reduce a unnecessary code clues. > It's not bound to the lruvec, though. Call chain A uses it and call chain > B doesn't. If it was always used by every call chain, I'd see your point, > but we have call chains which don't use it, and so it adds complexity. Where is the call chain B, please? > >> 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.