Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2927923ybh; Sat, 25 Jul 2020 06:01:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu9BwPHeJEmsBYCXEzv++csZ3kptI1c1jwTuQOvY/6V8rpDmo0iNcljDE7o/Dut7+TG21t X-Received: by 2002:a17:906:eb41:: with SMTP id mc1mr11744179ejb.245.1595682104874; Sat, 25 Jul 2020 06:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595682104; cv=none; d=google.com; s=arc-20160816; b=yI4np9X/9u9Rlk4cvyNmBD/qpcyQT7NwsM4rz598IknqAmcNovXS0aszcZS+NgnkzC wdvQ0kXXz1WAQqv7rm1hJaoBdUzOr5u3ZI/E5eDrPjaV8AibvOSvyGKe/AVZytvIaXXm uRRaZsxSIODwZ7IiaJ2ZHSjCN0Iu30PZA8i7qcn3cvlzrnuNPal9uwzuONZvbJmnbC0c +FlUG8drIRNEKcXpJHCA59dv/WV9zFI0ZvY9nK++Ma49uTKUWQ46q2hssVjJvrkXeUyD qIuV/Bw3RJWsYz3glRgAzfWGrfyKYcEt82EE4e1i2l9RbKt62nkQtBRNjsgnltzN+sNj ZKOg== 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=n6ztFdiwwKLOA5z2Jmuyga2vurJMIVCkDg1VtM5S3wE=; b=eDrmEuPq9/wsFTNxiuXjzsuLiyRdBzV2l3yzaa9/+ErYN3h6hKmockc1ga3pqnOgt8 /kb2dF28bpWNFHCYDDAGSHVckW2gPxADlTaYcGoYwqQqrjHsZDxFqL2Kfw0LUxIv3wlX MdBCaC2FQ/BOtHATgjCKz5ft8CMiQGEhNaULkJXfmCrW8zKUlLSZQfyeoJNndVJPoSlw qItk4VkKZZ/Ik9J8JAAS12bUawJknE9+SjflP5YUdpbKYdOSDYAjO0o0vGs1cn4MbV2P 4AQpdwc3o0JksuEV1fU9YOS9Wt4Xsdcc+YZWxWVRm11dvF9hq2/wJNN/WSW6s76F08GL r+Hw== 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 b18si2474074ejq.13.2020.07.25.06.01.22; Sat, 25 Jul 2020 06:01:44 -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 S1727898AbgGYNAy (ORCPT + 99 others); Sat, 25 Jul 2020 09:00:54 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:38711 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726583AbgGYNAv (ORCPT ); Sat, 25 Jul 2020 09:00:51 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R501e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0U3l6fmD_1595682015; Received: from aliy8.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U3l6fmD_1595682015) by smtp.aliyun-inc.com(127.0.0.1); Sat, 25 Jul 2020 21:00:28 +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, kirill@shutemov.name, alexander.duyck@gmail.com, rong.a.chen@intel.com Subject: [PATCH v17 20/21] mm/pgdat: remove pgdat lru_lock Date: Sat, 25 Jul 2020 20:59:57 +0800 Message-Id: <1595681998-19193-21-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1595681998-19193-1-git-send-email-alex.shi@linux.alibaba.com> References: <1595681998-19193-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 30b961a9a749..8af956aa13cf 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -735,7 +735,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 e028b87ce294..4d7df42b32d6 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