Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1050580iob; Fri, 13 May 2022 21:08:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM7pUpApphwZBZ/XgeY1/QksUffS617paONYfLMx3YW91hc8zbXx60RLKHnHMVGUqjPw4n X-Received: by 2002:a05:600c:4ecc:b0:394:790d:5f69 with SMTP id g12-20020a05600c4ecc00b00394790d5f69mr7324169wmq.196.1652501287925; Fri, 13 May 2022 21:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652501287; cv=none; d=google.com; s=arc-20160816; b=m1IOa3MgrFKFHfddWMh8twNgRjNo7H7Xe3Sxl9oA790dadiC6gEZZ+BLFW3Fs4aWG0 Q/FUG12ovchLVU38tClVUzqdEYTucezxEIEJmNrmJTmoGovJB55YKXc3yz1VEvZAmhGo vEyz63FHsIoaoVHiueH1+UoLXzjbR8gR68HA1r1Za6bo62VoxDoqD0ZpTGGyfGX2wjhT 4ZSEjqBgPvTIl98JQkUyynJRpEPV3o0V2tYPE+SSG8M+jvyF5g5PnUA9O3kfWDp/LLwV 3eWQSaiq0iM27fSeHFTu//2MAHF8ja4CZY3WIJXhoe8s4ombp9RQ8LiQeolG9syO+oIp wyCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=RajI7Fou3WV1UOrt4HTzXn7hYO+l7sBq1MPb5wyAvrw=; b=ZAedKPJkuDJyU7g9xs6z2LgaGsIv+vgcs8vlPiMyH0tFyWJspbf7dC4RdAX98n/TR1 sQGZh+7J1j0X0iPeTGTkW9xayDELevO569TwUGMNhXJNvKhESO09LRsn2AzO1NHSPyKz d/lH2UW7sZfmDbWeVjPzNo20TmrNAcjkC388+rWTJK2bws+ayj9Qequs7AEzpUsPYWEP QnvyzVBAagL8QtRXbunwQTGyIv3ehexEpRZxfDXDvlBf7tyRAqondHviaFv8IvBilk4F yq0P82r4BrxLmGxzbUEOJOGNtvJ6BkE0KzyLHN8ylom5qUMSCK6tXSpYCUEM9C/0A97F 70+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Bzw1/HrP"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o9-20020a05600002c900b0020cf9078859si1204201wry.168.2022.05.13.21.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:08:07 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Bzw1/HrP"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 880284C6731; Fri, 13 May 2022 17:39:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380205AbiEMMWk (ORCPT + 99 others); Fri, 13 May 2022 08:22:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380207AbiEMMWg (ORCPT ); Fri, 13 May 2022 08:22:36 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C5DF926C4F9 for ; Fri, 13 May 2022 05:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652444552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RajI7Fou3WV1UOrt4HTzXn7hYO+l7sBq1MPb5wyAvrw=; b=Bzw1/HrPbFs3FRELuVNlwlCMVmtOdMOw+H4ZeCCns8xpJC7mL9IT9sTljj/+EBhf6egM+q 5guZg+QgKgBQ+e+abQwiyZhT9Wnth20R44RZp4BVo2FU++N4zBXLmD2zDba//u7xhZalNl Aq9WsogoWMHuWCXRpBboK8oyBnPNbWY= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-326-pyTELyo3Pv2X9JQZMlH0Pg-1; Fri, 13 May 2022 08:22:31 -0400 X-MC-Unique: pyTELyo3Pv2X9JQZMlH0Pg-1 Received: by mail-wm1-f71.google.com with SMTP id m186-20020a1c26c3000000b003943e12185dso2863010wmm.7 for ; Fri, 13 May 2022 05:22:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=RajI7Fou3WV1UOrt4HTzXn7hYO+l7sBq1MPb5wyAvrw=; b=GsDLqzWmKNoKRWFrVPIR0BNIiP99s2eruLz8qKXI8vRtiRHY9GXDtZRe/EM6GKmnY5 emYtaJgSbJVN4GsDHYib8V5PojM7Yk2RNt0dSrcCXc2F/bjZqL+9KFbVfI7a0IPZg+5h 3inEoh/624vyiR0zs1Mi2QF9+J+dExxEpi2CyRFU6cjFf2ILDX5h87AMKGzBW8n2conp VgCKtXPH8FXTOQ8LgFG6cGlpNruFXIBNJBGCDp+kM5t2DFYi9NmY3rMAjDV/6xlN7xn3 duIYfHoB2kblbJ8ixpJtH9ccrEK51psPNN18CZ1XZFy03R3SmY9TEFuC5uEayvAYPg2/ VKEg== X-Gm-Message-State: AOAM533TVNp16+DuxKsN9sS/Zw6tt3OwIaIV+2RodP5F6GarnoZC2zJr muD/sdUotB/PA9oglHDVjJ6kq8gC3A6xzSStV7ii7XEjAJZ+w+H00G98TR6w9XihmopiZTLesSF emnrIVZnh+ehH74g4A7IL5K9o X-Received: by 2002:a5d:584a:0:b0:20c:5a8b:cee7 with SMTP id i10-20020a5d584a000000b0020c5a8bcee7mr3766936wrf.111.1652444549771; Fri, 13 May 2022 05:22:29 -0700 (PDT) X-Received: by 2002:a5d:584a:0:b0:20c:5a8b:cee7 with SMTP id i10-20020a5d584a000000b0020c5a8bcee7mr3766922wrf.111.1652444549579; Fri, 13 May 2022 05:22:29 -0700 (PDT) Received: from ?IPv6:2a0c:5a80:1306:2f00:be0e:91f7:c0a3:32f0? ([2a0c:5a80:1306:2f00:be0e:91f7:c0a3:32f0]) by smtp.gmail.com with ESMTPSA id k20-20020a7bc414000000b003942a244ee9sm2152115wmi.46.2022.05.13.05.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 05:22:29 -0700 (PDT) Message-ID: <400f896ae17c66f9f68d9b5f248c13cd5ece6158.camel@redhat.com> Subject: Re: [PATCH 5/6] mm/page_alloc: Protect PCP lists with a spinlock From: Nicolas Saenz Julienne To: Mel Gorman , Andrew Morton Cc: Marcelo Tosatti , Vlastimil Babka , Michal Hocko , LKML , Linux-MM Date: Fri, 13 May 2022 14:22:28 +0200 In-Reply-To: <20220512085043.5234-6-mgorman@techsingularity.net> References: <20220512085043.5234-1-mgorman@techsingularity.net> <20220512085043.5234-6-mgorman@techsingularity.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.44.1 (3.44.1-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 T24gVGh1LCAyMDIyLTA1LTEyIGF0IDA5OjUwICswMTAwLCBNZWwgR29ybWFuIHdyb3RlOgo+IEN1 cnJlbnRseSB0aGUgUENQIGxpc3RzIGFyZSBwcm90ZWN0ZWQgYnkgdXNpbmcgbG9jYWxfbG9ja19p cnFzYXZlIHRvCj4gcHJldmVudCBtaWdyYXRpb24gYW5kIElSUSByZWVudHJhbmN5IGJ1dCB0aGlz IGlzIGluY29udmVuaWVudC4gUmVtb3RlCj4gZHJhaW5pbmcgb2YgdGhlIGxpc3RzIGlzIGltcG9z c2libGUgYW5kIGEgd29ya3F1ZXVlIGlzIHJlcXVpcmVkIGFuZAo+IGV2ZXJ5IHRhc2sgYWxsb2Nh dGlvbi9mcmVlIG11c3QgZGlzYWJsZSB0aGVuIGVuYWJsZSBpbnRlcnJ1cHRzIHdoaWNoCj4gaXMK PiBleHBlbnNpdmUuCj4gCj4gQXMgcHJlcGFyYXRpb24gZm9yIGRlYWxpbmcgd2l0aCBib3RoIG9m IHRob3NlIHByb2JsZW1zLCBwcm90ZWN0IHRoZQo+IGxpc3RzIHdpdGggYSBzcGlubG9jay4gVGhl IElSUS11bnNhZmUgdmVyc2lvbiBvZiB0aGUgbG9jayBpcyB1c2Vk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