Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2410132pxa; Mon, 3 Aug 2020 15:46:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5ouhbR3lGl5pVQiAWG/IXs6QMlAbkeY5hA8IDlRsFWMTDXlmNVncRyXt+w34Ern9a2wVr X-Received: by 2002:a50:ef04:: with SMTP id m4mr2296798eds.63.1596494767865; Mon, 03 Aug 2020 15:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596494767; cv=none; d=google.com; s=arc-20160816; b=cMFrWs6hl2+WO2Io7qW2DsRc3oJ87exH3XZm0eHxgkc+68bm8Kigr4CT7IGj6dIE4f nhvUk09DLOolCe/SLyPKsJa4JAjO/KzBXYhhYHgPoF5pJvlDz+IJMCFi5xNaZORtFKeK S2aJcPZev17bk0spk6WtMDJENTY3TIgqhiuHeisGt1JWRd3d1hlcW+GeAhjd7aiV0713 I4M+op6OtI9PVX3DWAg7jqna+LlYmoOIhswPXf6P4uaEzn5pAVZalBgNuaFVP0hzyCZx DOumQ5QXhAYWF36yNkIo0ZFsmIbCm0CaBe6CC9M7c9XIzm0Nc/ER2jnRnSO5Q2Q2bLrd rDcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5UQWcxeOoEkXTJIt/PdyNhlScRBnQycvZyIEzHIohI0=; b=emcMmPmkSpRJGrZI4yofUV9t2qKhAe0o7qLcCk1dpnxvXLbzMFQhsasTniR9C/Nhpl c/taRwrpKZfN/22r5bsU1KO7VaTwHNpLrYYrpCdfwhVDB33WrKUBVsIGvWgaaE2c7mAN 4XVE10zPkK8DhrPw1IlepMQHSBzHgA6zLygI4ZFRPw52K0k0pvas3k+e9GIoNkzlrXPn WZOUNXZBJA4TbNz+ANoQ7x6H4aoL+/gBHIXj04TdARHPZm02QFnWeehIeR0tcYloyj6h AC4uX1VaF6Oa/2sun3EKuH8bpyooqv1fptiH5RT/uB8m65+mtGC48MdGe8C4X4BKCS5x qCIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gYJDWc5m; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si11186360eds.413.2020.08.03.15.45.45; Mon, 03 Aug 2020 15:46:07 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gYJDWc5m; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728589AbgHCWnL (ORCPT + 99 others); Mon, 3 Aug 2020 18:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbgHCWnL (ORCPT ); Mon, 3 Aug 2020 18:43:11 -0400 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4B29C06174A; Mon, 3 Aug 2020 15:43:10 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id k23so40191152iom.10; Mon, 03 Aug 2020 15:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5UQWcxeOoEkXTJIt/PdyNhlScRBnQycvZyIEzHIohI0=; b=gYJDWc5mAAFpapjvwlC/qoPFpgfc1nYNN2CnELkmZiBmOg8SjVJKWP+KkOaZ+C3yEZ q35cDxlG/PGbtI/fYuoMlPtncITQ6VyUZQoLBt+T7vW9722CmtWiqJDAQaPRT7UEQVy4 ytAh+MCsSXKJn2Mks5RBPbn1F6/tbEnd/L508a2mX40hNLFAovPeECh+rV/K+viBoGwo +ZMvOVZQNrprdF3Q198T6HinK81k3OA6L579C0xU27auPB5IlpuC4jHfNaQR3JNRMHq8 H8aG4rLiD1yk2rtKAdl0EX6hByWwofrEeAXl1hrOZTGcKkh1qJlhnLYf1OQEFBVsmHhX Og9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5UQWcxeOoEkXTJIt/PdyNhlScRBnQycvZyIEzHIohI0=; b=ABhS/cU2xdGGMuy2PSJ0TUof+QfIccQUIRLVYfQTHkiBjFehRks1alWpZtK5crT0IM VXCIHRMrpSUCCAT3Fn2sCXzuu1RhG1TYe8trl0kdqTXE2dUhQYhOyN7LV0Pe9LYiE1cU a3wnkVZBA0/hIzSGDlb6V+LSdbjw1zBkDNfjkp4D5H4jAB2WGsHtQAkirQa9FsDmflCr /rn9OIRYeE8rDChfhl37WRaETHpOHDlo4UbKMME27EwbsmiCv/bX7pl1ZoZVH/PHZzAp 9l5rEpnAWkCRZhn09ES79quZ8E01z7yv8365C5b+oipG7LbJdHeXJ17JFdfkjpxHsTUL WG/g== X-Gm-Message-State: AOAM5325jxSI/S2j+G8P3Opmaz6S8HB2YRGGTyZqkJaUUtdDK4VcqpjH foJvnfCEnt3vsmgh5GLfz8b9Q01VEFnPoXW4FFQ= X-Received: by 2002:a6b:da0d:: with SMTP id x13mr2199562iob.138.1596494590289; Mon, 03 Aug 2020 15:43:10 -0700 (PDT) MIME-Version: 1.0 References: <1595681998-19193-1-git-send-email-alex.shi@linux.alibaba.com> <1595681998-19193-21-git-send-email-alex.shi@linux.alibaba.com> In-Reply-To: <1595681998-19193-21-git-send-email-alex.shi@linux.alibaba.com> From: Alexander Duyck Date: Mon, 3 Aug 2020 15:42:59 -0700 Message-ID: Subject: Re: [PATCH v17 20/21] mm/pgdat: remove pgdat lru_lock To: Alex Shi Cc: Andrew Morton , Mel Gorman , Tejun Heo , Hugh Dickins , Konstantin Khlebnikov , Daniel Jordan , Yang Shi , Matthew Wilcox , Johannes Weiner , kbuild test robot , linux-mm , LKML , cgroups@vger.kernel.org, Shakeel Butt , Joonsoo Kim , Wei Yang , "Kirill A. Shutemov" , Rong Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 25, 2020 at 6:00 AM Alex Shi wrote: > > 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 I really think this would be better just squashed into patch 18 instead of as a standalone patch since you were moving all of the locking anyway so it would be more likely to trigger build errors if somebody didn't move a lock somewhere that was referencing this. That said this change is harmless at this point. Reviewed-by: Alexander Duyck > --- > 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 >