Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4083687ybl; Tue, 20 Aug 2019 06:49:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwq31J68D5r65KgjYlEPZWgx3NusbhxJdOr0on2pWKUasNpMHfhn+AB1Gtmh00D4ibB3mkD X-Received: by 2002:a17:902:d88e:: with SMTP id b14mr6316188plz.244.1566308942654; Tue, 20 Aug 2019 06:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566308942; cv=none; d=google.com; s=arc-20160816; b=J+pOyv31JVCxFsW0xvnX2FJ+X0XxGxbv+LNMXe5Xhw4s0qE7/+hkM7pBTS+rgVuzr/ ACUFWTTjLuEtrB67JorfJiLjX1twasFjpCnlWAwOqFkYhA4WlqdRTeRM3R7kYaMr5WV+ XBe6oetzz9KA9Vlz+QPMAuChYLgXxPOLzD6uSnRiy8BSgQCLOhGxymZGTgH8l//KypoB Sw7qVScWuwvZVZmpk7+xzkfGgBz3QN0ag5JwaSRBIWcmypPOSKnDKR5vogsFK5Zx2CQs OY00POTivJ7ZNUpnUz3pR20W6EzrDVARe3chu/e9YoNYXuK9JJgWWP7o3ydZ515ISkU4 ntbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B8LOvtinbA79S6NGUvPmiLsFutes9sDZnF3rriD/5Mw=; b=SLRWEa/HQR7n0Vu2rtzC2ZlYo0nFzz/243+DRiv6lIwU4qmUh6fy4Aek5pSl6iEAG1 ++yspdQgbq5hJLM0dddGyIZBqmB7PNLdZf3n+JSM12HTW/2tM4+yVIiamT4obvt6b99J bp97U7vjfExca7BBWmN5ITl9A28YiFNeq3WBE2XrNM7/f5WPhXkqEBGtnzjxMQBP3i/s nBktvjZF6aOH1tOysyClzVjl4XiGeX4ueWBzf6IrlRT0zcbeQc/nMz04DNIYO0RUsV2s cnq7b32UMCt2tvNOMUGo6loRyNMq7X0gltdIuba6JtsD3SOrIAdCmb59d95iVlltdoPT 2uXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=LqgG+2Wd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si12101034plo.98.2019.08.20.06.48.47; Tue, 20 Aug 2019 06:49:02 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=LqgG+2Wd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730603AbfHTNrz (ORCPT + 99 others); Tue, 20 Aug 2019 09:47:55 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52972 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730143AbfHTNkh (ORCPT ); Tue, 20 Aug 2019 09:40:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=B8LOvtinbA79S6NGUvPmiLsFutes9sDZnF3rriD/5Mw=; b=LqgG+2Wdt6591p4WO0+ZJbqG6 JVwTerajJO10FChITzDm05wP2VLtJnRRALEsBN7lsG55BOjyn6LJqArhyPi3bXAVRiBtxrTIhVrGR dmyT7Q0/4ozU+NDkCoQ/0z2ri/SOjl8JXuwudo7C/gjOUeWgoXYQh6VKjtldhzkcQ1usxbl+YUCJ8 eYICpPUrQ3PQaIjpM7+lIJBtpr13OYextxKSxKz6NELTmP6n+QIOUH/DRp5wUH9Y4G1TJWigSzkWx uLj+hzSg/dfvmLL9uPbxkKLxvFoeoFGigZRqWKfM95/1lnk9qu4wSzinaCZd34957WhaXkdSxjpeI Z98gbhvhA==; Received: from willy by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1i04NE-0002hI-Qz; Tue, 20 Aug 2019 13:40:32 +0000 Date: Tue, 20 Aug 2019 06:40:32 -0700 From: Matthew Wilcox To: Alex Shi Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Mel Gorman , Tejun Heo , Johannes Weiner , Michal Hocko , Vladimir Davydov , Vlastimil Babka , Dan Williams , Oscar Salvador , Wei Yang , Pavel Tatashin , Arun KS , Qian Cai , Andrey Ryabinin , "Kirill A. Shutemov" , Hugh Dickins , =?iso-8859-1?B?Suly9G1l?= Glisse , Andrea Arcangeli , "Aneesh Kumar K.V" , David Rientjes , Souptick Joarder , swkhack , "Potyra, Stefan" , Mike Rapoport , Alexander Duyck , Stephen Rothwell , Colin Ian King , Jason Gunthorpe , Mauro Carvalho Chehab , Peng Fan , Ira Weiny , Kirill Tkhai , Daniel Jordan , Yafang Shao , Yang Shi Subject: Re: [PATCH 01/14] mm/lru: move pgdat lru_lock into lruvec Message-ID: <20190820134032.GA24642@bombadil.infradead.org> References: <1566294517-86418-1-git-send-email-alex.shi@linux.alibaba.com> <1566294517-86418-2-git-send-email-alex.shi@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1566294517-86418-2-git-send-email-alex.shi@linux.alibaba.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 20, 2019 at 05:48:24PM +0800, Alex Shi wrote: > +++ b/include/linux/mmzone.h > @@ -295,6 +295,9 @@ struct zone_reclaim_stat { > > struct lruvec { > struct list_head lists[NR_LRU_LISTS]; > + /* move lru_lock to per lruvec for memcg */ > + spinlock_t lru_lock; This comment makes no sense outside the context of this patch.