Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2122240pxa; Mon, 24 Aug 2020 05:59:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/O5LP9SiZTuwbcs/abhJ5UspWP/GMRCOYzf1FR/XC15DWlocBO5ic4hjqHxMRSnUnWMpP X-Received: by 2002:a17:906:2704:: with SMTP id z4mr5301467ejc.350.1598273970272; Mon, 24 Aug 2020 05:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598273970; cv=none; d=google.com; s=arc-20160816; b=HlzfTcbtrRf51DM1eDvOkBJzQz/+39unJMxMc/+lZy+0yu3u1xgifzyhnn/oWYh4mp HprrHOTwhXETbgj/r/n8wn8GfcsNrzrYzo6zLEKSGg9XvBTpBTIVsCnutUK7wKOoQlO3 ZwtdvHwnUzxbdgxf57xv4DJ1OVCeZxapfN3l9iC890cNC2XRGOBeLjAAwmEtIzbUHSQG 2TE6vUZB27gud19vw08Aca5KEJcEnfUbQDA7USEXbT8KMZubHp4qH4gTKQcxJq4FD/YJ 4bC7XPAs6JjxBDQP4trxvNlu+fEhAQsiQeAOpT18AWrJONDSYwcOGT1gMTDLbTf2xnAb sxBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from; bh=TbUCXIm1mFSSYdE9dFAG6ky9BaGTJ2Yof/IYoGYlxJk=; b=QajMLm0XgrwKlY/5C75jSN0VytmmlXoxgXApniYOUlV6eHx+4JsxPLLLg/tsbOaXy2 iS2fT7yNBa4taT/0pxrfCSKJEw9EAmPXYobW7oZSVsJBP4nin7dhPr1hFilVnM4eTCde 0wSFf+bS273bkrp0aeHbPJ77vVCSCnn2hzPxH3eP6F/9a0hIgm0lBm3yoLq4gOn43uvY 9RnaueLfzd1xOC11OI1c+pJ6mb+bL2LaW6osp48dux1Fo4isqiCDoh+9xf0Bw0NeqWqO cdxUPOuMn71GV7QzK3pojKIZ0+ceNbDk7Kq8Tl9EcyydzwWZHEvYxKYIpN8JuNNsxoLW CpZg== 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 r6si6603136edb.217.2020.08.24.05.59.07; Mon, 24 Aug 2020 05:59:30 -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 S1728088AbgHXM50 (ORCPT + 99 others); Mon, 24 Aug 2020 08:57:26 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:50751 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727076AbgHXMz3 (ORCPT ); Mon, 24 Aug 2020 08:55:29 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R401e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07484;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0U6k9-bl_1598273712; Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U6k9-bl_1598273712) by smtp.aliyun-inc.com(127.0.0.1); Mon, 24 Aug 2020 20:55:21 +0800 From: Alex Shi To: 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, 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 Subject: [PATCH v18 24/32] mm/pgdat: remove pgdat lru_lock Date: Mon, 24 Aug 2020 20:54:57 +0800 Message-Id: <1598273705-69124-25-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1598273705-69124-1-git-send-email-alex.shi@linux.alibaba.com> References: <1598273705-69124-1-git-send-email-alex.shi@linux.alibaba.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now pgdat.lru_lock was replaced by lruvec lock. It's not used anymore. Signed-off-by: Alex Shi Reviewed-by: Alexander Duyck Cc: Andrew Morton Cc: Konstantin Khlebnikov Cc: Hugh Dickins Cc: Johannes Weiner Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Cc: cgroups@vger.kernel.org --- include/linux/mmzone.h | 1 - mm/page_alloc.c | 1 - 2 files changed, 2 deletions(-) diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index f0596e634863..0ed520954843 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -758,7 +758,6 @@ struct deferred_split { /* Write-intensive fields used by page reclaim */ ZONE_PADDING(_pad1_) - spinlock_t lru_lock; #ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT /* diff --git a/mm/page_alloc.c b/mm/page_alloc.c index fab5e97dc9ca..775120fcc869 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6733,7 +6733,6 @@ static void __meminit pgdat_init_internals(struct pglist_data *pgdat) init_waitqueue_head(&pgdat->pfmemalloc_wait); pgdat_page_ext_init(pgdat); - spin_lock_init(&pgdat->lru_lock); lruvec_init(&pgdat->__lruvec); } -- 1.8.3.1