Received: by 2002:a05:6a10:e2c5:0:0:0:0 with SMTP id j5csp4460208pxy; Tue, 8 Sep 2020 19:25:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKgcJRjWUUXi0g9AnUSh0x1Bw3ZsHdrpI23gvmMMyTfg69CCOVvV5QrQBljTdGjQRA+XpB X-Received: by 2002:a17:906:f2cd:: with SMTP id gz13mr1461291ejb.19.1599618332307; Tue, 08 Sep 2020 19:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599618332; cv=none; d=google.com; s=arc-20160816; b=r5k3mki9EHWutHTkOkvCZp+SQCn8J5+vXW8xTRd6/+QyWz684vW9vBK1hFPEbQLPGa sAgkZ+BSo1PJNsm9uixgC03ntEdGYj/lwl7FeBKPqT3ZwCou//OjvUIIMwJbfo4g6klb zKt3VFMhKH1Sl1l5JKtAo6p5ptG56moj/H8Q3Luo8OegaSOErFicrEXdK48PVgRwXDV0 dOV7OZF+bRIm1S9fz1+zIu68bH8uAyc2c/P1+lmQ6aqxKSnRSrYEnS0rhSCQUGD1Bfa2 HcO4W5ICi9uuRHxiLuSOUAlar06Lulu+LJKBIJweeE4Bc3/vjrO2eInC+Wb1Rdtw1T0/ PQpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date; bh=4JfsZpyhMwLxjVNbkQUhv/G+82bo7tW3e65Xsa/DRS4=; b=X98nZNlfXBhzw4Ec2gLlMX7Eo2FC0gCL6VeZd1Ob9Bqz4bnvW1ZBHrvaCMoPzxWwFS kFxxcTy+2iR5u0ZlOrJLr6n01JGppkH6IuDApn40CniztqVfzkrFoJQY2Wyo4oylu6tc Y/ODq06CnzcOTMJ6W7xeLOZpTlxsnOFAXMPVgwGaz/EBeqc0ScgUXFfdDPLs/IERGzK4 pzpF8ozsV0XRKIJySSqqNpQKIMYWdB45DX9KMDYmZYLEPRMYvhyRRIpL8aZJyeD3lAdc JqlVRW/mSLbIUhGQcGKpdiortT2r7PVWUzNLJZ5sWy4fwurYRoFFPShl6nLMJIZJAVYd QmRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id k13si604308ejr.21.2020.09.08.19.25.07; Tue, 08 Sep 2020 19:25:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726680AbgIICYZ (ORCPT + 99 others); Tue, 8 Sep 2020 22:24:25 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:42086 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726369AbgIICYY (ORCPT ); Tue, 8 Sep 2020 22:24:24 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R731e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=richard.weiyang@linux.alibaba.com;NM=1;PH=DS;RN=25;SR=0;TI=SMTPD_---0U8MLMVV_1599618258; Received: from localhost(mailfrom:richard.weiyang@linux.alibaba.com fp:SMTPD_---0U8MLMVV_1599618258) by smtp.aliyun-inc.com(127.0.0.1); Wed, 09 Sep 2020 10:24:19 +0800 Date: Wed, 9 Sep 2020 10:24:18 +0800 From: Wei Yang To: Hugh Dickins Cc: Alex Shi , Andrew Morton , mgorman@techsingularity.net, tj@kernel.org, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, willy@infradead.org, hannes@cmpxchg.org, lkp@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, shakeelb@google.com, iamjoonsoo.kim@lge.com, richard.weiyang@gmail.com, kirill@shutemov.name, alexander.duyck@gmail.com, rong.a.chen@intel.com, mhocko@suse.com, vdavydov.dev@gmail.com, shy828301@gmail.com, vbabka@suse.cz, minchan@kernel.org, cai@lca.pw Subject: Re: [PATCH v18 00/32] per memcg lru_lock: reviews Message-ID: <20200909022418.GA14584@L-31X9LVDL-1304.local> Reply-To: Wei Yang References: <1598273705-69124-1-git-send-email-alex.shi@linux.alibaba.com> <20200824114204.cc796ca182db95809dd70a47@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 08, 2020 at 04:41:00PM -0700, Hugh Dickins wrote: [...] >[PATCH v18 06/32] mm/thp: narrow lru locking >Why? What part does this play in the series? "narrow lru locking" can >also be described as "widen page cache locking": you are changing the >lock ordering, and not giving any reason to do so. This may be an >excellent change, or it may be a terrible change: I find that usually >lock ordering is forced upon us, and it's rare to meet an instance like >this that could go either way, and I don't know myself how to judge it. > >I do want this commit to go in, partly because it has been present in >all the testing we have done, and partly because I *can at last* see a >logical advantage to it - it also nests lru_lock inside memcg->move_lock, >allowing lock_page_memcg() to be used to stabilize page->mem_cgroup when >getting per-memcg lru_lock - though only in one place, starting in v17, >do you actually use that (and, warning: it's not used correctly there). > >I'm not very bothered by how the local_irq_disable() looks to RT: THP >seems a very bad idea in an RT kernel. Earlier I asked you to run this >past Kirill and Matthew and Johannes: you did so, thank you, and Kirill >has blessed it, and no one has nacked it, and I have not noticed any >disadvantage from this change in lock ordering (documented in 23/32), >so I'm now going to say > >Acked-by: Hugh Dickins > >But I wish you could give some reason for it in the commit message! > >Signed-off-by: Wei Yang >Is that correct? Or Wei Yang suggested some part of it perhaps? > If my memory is correct, we had some offline discussion about this change. -- Wei Yang Help you, Help me