Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1064943ybg; Wed, 10 Jun 2020 23:19:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpyKQfjeQatl5esh2uU8TicVfCQM4MF4PV3jmANqHy37Q4lgsV0b4fLOtzrQYSbM3yBzdW X-Received: by 2002:a17:906:851:: with SMTP id f17mr6587390ejd.396.1591856381939; Wed, 10 Jun 2020 23:19:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591856381; cv=none; d=google.com; s=arc-20160816; b=DxucTLrlGuHZPDpxe3ZS2cpH10eWY8K5UXHksXqE3Jvf7meggH7BDxEpz+PuYdytBi jszj9h3DNpqHUx16RcUVdpZSnBaVyqy03ykVWtRykSD97fHtxF7mx/WXYrKzYY2xP7KP srua+o6nDxsuDpwOBT1vHt1I9BFG3SCrmFlrHJClCPGzp/yYq2qYMmrBaZ0Ue/R0+Kxp oEpPw7v0zZEuDLuqNMBqhFToEf+FH8Fme6IKg/DPSn/MMQHGXKH7i42FLR5En/92bqyX rqBQD2caOETpNd8sgeZ2mdmYCkdl9/WExEMJr0SqpBzaeGXNRgY6Q3Z5cyCnLhnXm2F+ T3/Q== 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=ROnzKJVsW4zIAtTDfNFoBRB9UA1LHImyXehcYSlQIek=; b=ZsfGr+mfn6ryyjH5FnBfSl6e4dcAeHXVfbkaqfm9nW1EanpIFJRk5XKVZp1IsbmB1k awwjuVYdKvcx2gnKcIalolda0ubmPeBP0+9609fyRBBWnod7jcX+GvjX2nfvnq0qJzDA RhTfyoq/ay0PaYNXqrpH9hIeJqnT91uHVM6r7+/+n1++00J/A2adgXhifDV6jQCBSVaT X6Z+NEUYuxpuRM4+ZK/O3elVzBurpXc2aBzvFKcNYOPCcXz55Lpm+qco2LzV9aIYyG5o ih4iehfJPnjI60Lf4JIv5mJF53AwuBuKHp0ZsNzaro0Oz4FXc0DprFQE1Vic1Q68VP6E nMUQ== 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 i8si36137edn.107.2020.06.10.23.19.19; Wed, 10 Jun 2020 23:19:41 -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 S1726708AbgFKGRV (ORCPT + 99 others); Thu, 11 Jun 2020 02:17:21 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:50530 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbgFKGRR (ORCPT ); Thu, 11 Jun 2020 02:17:17 -0400 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=e01e01419;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0U.EnDBD_1591856231; Received: from localhost(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U.EnDBD_1591856231) by smtp.aliyun-inc.com(127.0.0.1); Thu, 11 Jun 2020 14:17:12 +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, yang.shi@linux.alibaba.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 Subject: [PATCH v12 15/16] mm/pgdat: remove pgdat lru_lock Date: Thu, 11 Jun 2020 14:16:48 +0800 Message-Id: <1591856209-166869-16-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1591856209-166869-1-git-send-email-alex.shi@linux.alibaba.com> References: <1591856209-166869-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: 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 e178aa624e46..d32a17e1d8c2 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -723,7 +723,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 48eb0f1410d4..05ce6e1a3098 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6721,7 +6721,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