Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8546623ybl; Wed, 25 Dec 2019 01:05:54 -0800 (PST) X-Google-Smtp-Source: APXvYqweA1Jzh9RSiWeVo+z+ZPzwS19xczTD9U+blxC+7aVMhd2dbMlvrh93Dz0WzGyK9vciN68h X-Received: by 2002:a9d:7e8a:: with SMTP id m10mr41441660otp.27.1577264753839; Wed, 25 Dec 2019 01:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577264753; cv=none; d=google.com; s=arc-20160816; b=DRs1IaIUictZIzKM2qKnx7gxwQ2ToBCcxqGDqxi1kcEuBuYLa141LlEIJmhGf988OV 0rZIdETLNhu+66VN6wMjuoM1uPvQl7ZEtxSNm7rTX9j1GDiBOvq/n4smdtLKdL2EPUti nfnAUaNXgENojjHFIJyqp3uPhjaIaewqS3YCKfipX2HuDUkzRAtJb/OsHsIZCopgSsjr Tg0GGVZrYYfr3ssaK9tcDQjDXzMWmHL0JcZ8BKztbw+nftCbp6NshfX5G5idZGRtnLMQ aTM6bqRDF3DTa94NzQbC+NEk0EM6AUcEJweMrhUdncgLG/mao+N100SdiroTpgZ5340k zIdQ== 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:cc:to:from; bh=2/P5oGePz9s9fqXTPbKaoXrWzEWM3d6QdAPKoxGKsTg=; b=CiHpVa++XGNaqGLHFRNcCDyh1KSOYM4m6krpirbRi8IjCpzjInjZirAyIhTq1ER2TW WCcIU9aWfcxffh7cBGEDeTjj8w0CQ80OCQq54vHxlhlc806lYYk4RAXOXkmzC5sZjmI/ FwelhpJzX+g1lgH4moRXLnaUXP+PBdvuLyRwM21d30BkcbOvqohlmWajvf1M82BpS47D j8ZcxWuzqvu2BBgJfJI/nvSz1rBl6YJOZ8V57oPZ2cV3S91PjG8cfHIoj7Rg1s1OcdGU FFwJAdhbfi7xWPFsPLapAl7ROhr35q/nGpMRSDRYheKpLBL29/kZk3Pg38i+xu09JLzl OV2A== 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 f9si13891076otp.111.2019.12.25.01.05.42; Wed, 25 Dec 2019 01:05:53 -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 S1726935AbfLYJEx (ORCPT + 99 others); Wed, 25 Dec 2019 04:04:53 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:36435 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbfLYJEt (ORCPT ); Wed, 25 Dec 2019 04:04:49 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07488;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=23;SR=0;TI=SMTPD_---0TltCN7v_1577264683; Received: from localhost(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TltCN7v_1577264683) by smtp.aliyun-inc.com(127.0.0.1); Wed, 25 Dec 2019 17:04:44 +0800 From: Alex Shi To: 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, willy@infradead.org, shakeelb@google.com, hannes@cmpxchg.org Cc: Vlastimil Babka , Dan Williams , Michal Hocko , Wei Yang , Arun KS , Oscar Salvador , Mike Rapoport , Alexander Duyck , Pavel Tatashin , Alexander Potapenko Subject: [PATCH v7 07/10] mm/pgdat: remove pgdat lru_lock Date: Wed, 25 Dec 2019 17:04:23 +0800 Message-Id: <1577264666-246071-8-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1577264666-246071-1-git-send-email-alex.shi@linux.alibaba.com> References: <1577264666-246071-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 Cc: Andrew Morton Cc: Vlastimil Babka Cc: Dan Williams Cc: Michal Hocko Cc: Mel Gorman Cc: Wei Yang Cc: Arun KS Cc: Oscar Salvador Cc: Mike Rapoport Cc: Alexander Duyck Cc: Pavel Tatashin Cc: Alexander Potapenko Cc: Konstantin Khlebnikov Cc: Hugh Dickins Cc: Johannes Weiner Cc: Tejun Heo 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 c5455675acf2..7db0cec19aa0 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -769,7 +769,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 4785a8a2040e..352f2a3d67b3 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6712,7 +6712,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