Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp706609iog; Fri, 24 Jun 2022 12:10:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uwQbB/j0CK/+TcanjgbVdr2wFUgBPsFTz6MglWMxzrePEy37njSZqoC5dJkyFRs7AWAQvr X-Received: by 2002:a17:907:160f:b0:70f:cceb:d78c with SMTP id hb15-20020a170907160f00b0070fccebd78cmr472341ejc.247.1656097829285; Fri, 24 Jun 2022 12:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656097829; cv=none; d=google.com; s=arc-20160816; b=U1U5hn3jk+Q3WJ4hIuayD8f8bajIfcBaILJQqveEcqSHAIWcslD37Q5x7X9iEulqX0 tkFf2UhJCOrb5FMcOyT66ySp/IXcQLoo7fPaDwoec6tmNINEGUgWGfPm3ABbJ0FkyC40 9aKmz+IjJ40BxtOeW7ZZas5XPLVkC/qh0kR/M+4jL3ThByRxjC6EHCC1K+JimBbqE2Or aLwH9jPS/OgAPzTcjlJWt2wBW/Y3Xhu7Hpq3TA5wbcZp37dt7+vJPdNNICVJUHPverpp xOqjJPOXL7Vr1logB5TNg8H8fwVlObimDlSf+JJhEZ+A9BSJI3BlK4Xch30amp8/ifeT xwww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SGluoKDvNhpoEckHDDWOrxS1tEeRkkrqbbiy7mtXDJo=; b=jGwkqeVgHUNAVwYbcyFxRc8zkj0TBjK9LinYJptGAO25l3zYZcFWBDMpC1P0DNPUx9 2Q7IVsO01neYDdDZ61zxn6yd21rr+g4jRBLuxkNWPYKWtybcbIQncI/QsNXE1xvGTOBi GS+7EfWIAZYzFpjuy4Lz4Z/e3iXtCkT6+s5UasuMOVXM4M7t6Yz5T8CYeZaTk/15NXFf 0oisdSVeNKAQ9PLxrsI1/PSpc8ei+mZYKz9mrGAQg4WRhKXoMwwhRy6/dXvGdgcB8fKn rlm+B2vJJETFWtBXiR/d7jZjX2bM52EyXbCd6KsUYiSeLGfqFErUZwpwlJuttgP6lwbr FRyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SeBK9Ozz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hy28-20020a1709068a7c00b00722ef86e263si3013332ejc.140.2022.06.24.12.10.02; Fri, 24 Jun 2022 12:10:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SeBK9Ozz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231503AbiFXTAN (ORCPT + 99 others); Fri, 24 Jun 2022 15:00:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232201AbiFXTAJ (ORCPT ); Fri, 24 Jun 2022 15:00:09 -0400 Received: from mail-vk1-xa33.google.com (mail-vk1-xa33.google.com [IPv6:2607:f8b0:4864:20::a33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6504081C4E for ; Fri, 24 Jun 2022 12:00:05 -0700 (PDT) Received: by mail-vk1-xa33.google.com with SMTP id n203so1626988vke.7 for ; Fri, 24 Jun 2022 12:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SGluoKDvNhpoEckHDDWOrxS1tEeRkkrqbbiy7mtXDJo=; b=SeBK9OzzJLTSt+E2NcO4CyshZ5eHLG0+k5F08mXxwS2vxxQ9f/og5eFQvpKJ8uSSwI rHel2K+mUIoxl2Afl9nRzCRLf3eWH9X7pklzRV2sYVenMZQDJ9ViZZ3ozsOnypQl1toQ bAJ60csNSyGqcrE+qY1mCB468Vs/hKPnFMwiKFOdp9z6vJ4VZDIqzOYk4ZIs9G5/pKLZ eGXW2mR4f/2KWbDJrx4Gs/xh6DA0sVwkUyg1EZcCOY2cyjAX/mq8VqdOwQJN4jBYv5w1 Hw7gwdX71XnQGV0lxkEQdiUjeIfZtKjhEioV9HJPoMu1f/p2+QgVO/u4CpEyhkTabe5v Fk7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SGluoKDvNhpoEckHDDWOrxS1tEeRkkrqbbiy7mtXDJo=; b=VugHjw+a37z1gynu2g2LOS/rRa9f3hZckp39RbLwBMgPIGzMnPadCkTVaBnLETXMIR dTchj1jB4Tk4Lf43ys3NYUuEFMCtC3E49oOedKNyNBBzpqHGPQURQ4sOXTg3gNpkfKLK ZJzjoim9LsJP/RnlWM/Pe+BbMyamthnEvobyoND8JuaLD/uz5/SplaRNyUWEGldkI2qT e31r03FWO3aCMKWLtiR285sc9fmbhYrQuVQz7VoKsqe8IpsA7ZL2lIDWReWgjcncRnDy HNo/It9/1TsHBLSwogIBaaL41ru1l/wG8DsiAUT1qSoiXXMOG5dgNjKYW5FSytKf3nYJ VIxw== X-Gm-Message-State: AJIora9pAuKojfWwcQJHFcc+CqcQuL9aWNrBmeq9TDiiomlOwOUigCoc XdwCX3dUi6WnV9TdigVagKSKMW6pBmUXjkUyw4Pqpw== X-Received: by 2002:a1f:1886:0:b0:36c:c60b:a4ef with SMTP id 128-20020a1f1886000000b0036cc60ba4efmr125792vky.29.1656097204398; Fri, 24 Jun 2022 12:00:04 -0700 (PDT) MIME-Version: 1.0 References: <20220624125423.6126-1-mgorman@techsingularity.net> <20220624125423.6126-8-mgorman@techsingularity.net> In-Reply-To: <20220624125423.6126-8-mgorman@techsingularity.net> From: Yu Zhao Date: Fri, 24 Jun 2022 12:59:28 -0600 Message-ID: Subject: Re: [PATCH 7/7] mm/page_alloc: Replace local_lock with normal spinlock To: Mel Gorman Cc: Andrew Morton , Nicolas Saenz Julienne , Marcelo Tosatti , Vlastimil Babka , Michal Hocko , Hugh Dickins , Marek Szyprowski , LKML , Linux-MM Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 24, 2022 at 6:55 AM Mel Gorman wrote: ... > +#define pcp_spin_trylock_irqsave(ptr, flags) \ > + pcpu_spin_trylock_irqsave(struct per_cpu_pages, lock, ptr, flags) > + ... > + pcp = pcpu_spin_trylock_irqsave(struct per_cpu_pages, lock, zone->per_cpu_pageset, flags); Why pcp_spin_trylock_irqsave() was added earlier but not used later?