Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp250326pxb; Wed, 4 Nov 2020 21:43:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxi2Qg/sN83/l5GqLR3FSj6Kvv8KN8krH5ZoD7COC6v7ZgfhIipAAsACkMvbNA2NRSAeZq X-Received: by 2002:a05:6402:4cd:: with SMTP id n13mr862066edw.127.1604555012200; Wed, 04 Nov 2020 21:43:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604555012; cv=none; d=google.com; s=arc-20160816; b=D9uPRbTbQYSTmOsfTD13i4RY4qLMimA0myp1dAwfI2C4cXjTvV/g6KDuY23QHv+teW 1lF9F4DYYFnjlbHCezdVPuduRS+EcACtANbXi9zdB2SEs2xynWmV6ulMsAZ2ygrENMXx 8EUAyT7mnEfGE6m+I+MCb3ioBrHU/LcrYheEaWl7cIzIYXN16BJNjrELD044uhY4xg4x Lh17Ffmvi4JW6opp6//izx9eW8+l6SLybQH44WKh3FTB9TPpYYIwGc2PC0XKzbgkBl3k pSXSJN4dfNn9kEXvy6nhGd5wM9mkm7LTX9VukvVrts5c0CtbB886gksZjJLpu3x8lyVF u8wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=YNqRFR9K+Ixy4S8aHFsPRREc+y+jEBV+m9avpOgJqX0=; b=Ym0Jc1B5HzhOoqmYxHbbuNc95Qh3re9VVH92npx6uOmh0gM3zYLfWi6gAwYAU1Jcxy aTH8MR5EBIXzpUSbTbaD3Vj6sN46NR6MBIGs0lzKDT5PsP25FI8Se19uW/orq1xAhS+9 33XPfBWpFUP+bjSYLo1OH/gtqtw8ocFmK3fhh4J6iYcZaG+f8HR0kaAzwBOeK+DCUFOZ y7wAJdo4uarhaepX59+8GI6ybo30JUgWTrIE56XAmQKB0R75xjvgJGcDtyGJ6DH4C1vE Rwzv9Lz0sbcDml9vCUhqde21OwGe/YdLxj0bxs0YAzgzSwRL5xQ84SoL+lniPubCSucy yRrg== 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 p18si402804ejm.186.2020.11.04.21.43.10; Wed, 04 Nov 2020 21:43:32 -0800 (PST) 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 S1731017AbgKEFH7 (ORCPT + 99 others); Thu, 5 Nov 2020 00:07:59 -0500 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:52787 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730740AbgKEFH7 (ORCPT ); Thu, 5 Nov 2020 00:07:59 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0UEHX1wb_1604552873; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UEHX1wb_1604552873) by smtp.aliyun-inc.com(127.0.0.1); Thu, 05 Nov 2020 13:07:53 +0800 Subject: Re: [PATCH v20 00/20] per memcg lru lock To: Johannes Weiner Cc: akpm@linux-foundation.org, mgorman@techsingularity.net, tj@kernel.org, hughd@google.com, khlebnikov@yandex-team.ru, daniel.m.jordan@oracle.com, willy@infradead.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 References: <1603968305-8026-1-git-send-email-alex.shi@linux.alibaba.com> <811216d4-4972-4721-d6b9-1028c02f4290@linux.alibaba.com> <20201104165935.GA744831@cmpxchg.org> From: Alex Shi Message-ID: <59f37649-0530-e2d8-c2e3-ecb70871ffb4@linux.alibaba.com> Date: Thu, 5 Nov 2020 13:07:48 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201104165935.GA744831@cmpxchg.org> Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2020/11/5 ????12:59, Johannes Weiner ะด??: > On Wed, Nov 04, 2020 at 07:55:39PM +0800, Alex Shi wrote: >> @@ -1380,6 +1383,14 @@ struct lruvec *mem_cgroup_page_lruvec(struct page *page, struct pglist_data *pgd >> return lruvec; >> } >> >> +/** >> + * lock_page_lruvec - return lruvec for the locked page. > > I would say "lock and return the lruvec for a given page" > >> + * @page: the page >> + * >> + * This series functions should be used in either conditions: >> + * PageLRU is cleared or unset >> + * or, page->_refcount is zero > > or page is locked > > The other changes look good to me, thanks! > Thanks a lot for both comments! I will pick them and sent out in v21. Thanks! Alex