Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp353715rwb; Thu, 22 Sep 2022 19:43:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4faJtMp0akis8SuGt8ktoovmSW1RJR4nphGazwQRrDi8iA15YCfZ69OurLx/Hk2Wx7atMm X-Received: by 2002:a17:906:8a5a:b0:781:6a01:5ccc with SMTP id gx26-20020a1709068a5a00b007816a015cccmr5271145ejc.118.1663900989630; Thu, 22 Sep 2022 19:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663900989; cv=none; d=google.com; s=arc-20160816; b=1K0VGo4seLHwCxH6x2gBy5k/f5vPAGB7PTm2JZtaj6qCgcd1Ulp1VRle1BXJRQzV5N 76HtEOv3cnJhfoT1dj2+DLubPbI5huXqGXCWupdsTZx/7TTgi7DnagVkGgbDYCUWh/S1 dYurboqNRsPDoXw2t9zZ2WIF4L7Re0EZqKWyRGBs7E9TaGV7N0yt0BBYkUqeH3B1I+XG xNX6+TxVNVDyvCFW+ZMZI5JJwHNK+Xp5/Hfv9W6x/va3szA1GcohL0Sa5wZpN/e7h47L x+Z1kimmzX5AcuxcvJ5H/9sxDoGahrqMExehWiQZ8LeRJVSM/2/NZT6fm2WBqo5PmW/l L3Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=1OvOCTwaYfYScwDcYDZBlazwzHp3aHnkHH58GSAurTk=; b=xqibsIRE3zJh5tf9RDUTrNwcaaEPdalB3RD/IsZ5l5wnChkSGN8sLvG2Tir2XN7RRq CqMu2daH1WJp3c2vTzy60FpU0mPKGKCuWcTrfJXAr7bzQ7SIRvC4bCtltIW4+1YzRfuu fS5wYtBwRLjDWz8Lzdj97r48OpTh5Q7tPk1yfr7L7xM4AEPduVZjabknROj7F9vO+2IV ZTVBlCkwKWWsTHBT1jWx7GI0g8SdfdxuJ2oxFE5lYvaKr4Y2eSCkpUHr9Nqpk8ZlslPM n/f7tFG+zvLrc1CIj6I5pPS1OH8A5cP8Y1z/obL/N1/7Nb4Z5bV2zcfYt1F+U47U61Ot MBeA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh38-20020a1709076ea600b0073d7ad9607bsi7863116ejc.551.2022.09.22.19.42.44; Thu, 22 Sep 2022 19:43:09 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231982AbiIWB4l (ORCPT + 99 others); Thu, 22 Sep 2022 21:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbiIWB4k (ORCPT ); Thu, 22 Sep 2022 21:56:40 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F18EFFA70 for ; Thu, 22 Sep 2022 18:56:39 -0700 (PDT) Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MYZsS4yGrz1P6nx; Fri, 23 Sep 2022 09:52:28 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 09:56:37 +0800 Received: from [10.174.179.24] (10.174.179.24) by dggpemm100009.china.huawei.com (7.185.36.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 09:56:37 +0800 Subject: Re: [PATCH v3 1/8] cgroup/cpuset: use hotplug_memory_notifier() directly To: David Hildenbrand , Andrew Morton , Waiman Long , Zefan Li , Christoph Lameter References: <20220922141904.3245505-1-liushixin2@huawei.com> <20220922141904.3245505-2-liushixin2@huawei.com> CC: , , Kefeng Wang From: Liu Shixin Message-ID: Date: Fri, 23 Sep 2022 09:56:36 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm100009.china.huawei.com (7.185.36.113) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 2022/9/23 1:56, David Hildenbrand wrote: > On 22.09.22 16:18, Liu Shixin wrote: >> Since patch 316346243be6 has already updated the minimum gcc version to 5.1. >> The previous problem mentioned in patch f02c69680088 is not existed. So we >> can now revert to use hotplug_memory_notifier() directly rather than >> register_hotmemory_notifier(). >> >> Signed-off-by: Liu Shixin >> --- >> kernel/cgroup/cpuset.c | 7 +------ >> 1 file changed, 1 insertion(+), 6 deletions(-) >> >> diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c >> index b474289c15b8..0c6db6a4f427 100644 >> --- a/kernel/cgroup/cpuset.c >> +++ b/kernel/cgroup/cpuset.c >> @@ -3630,11 +3630,6 @@ static int cpuset_track_online_nodes(struct notifier_block *self, >> return NOTIFY_OK; >> } >> -static struct notifier_block cpuset_track_online_nodes_nb = { >> - .notifier_call = cpuset_track_online_nodes, >> - .priority = 10, /* ??! */ >> -}; >> - >> /** >> * cpuset_init_smp - initialize cpus_allowed >> * >> @@ -3652,7 +3647,7 @@ void __init cpuset_init_smp(void) >> cpumask_copy(top_cpuset.effective_cpus, cpu_active_mask); >> top_cpuset.effective_mems = node_states[N_MEMORY]; >> - register_hotmemory_notifier(&cpuset_track_online_nodes_nb); >> + hotplug_memory_notifier(cpuset_track_online_nodes, 10); >> cpuset_migrate_mm_wq = alloc_ordered_workqueue("cpuset_migrate_mm", 0); >> BUG_ON(!cpuset_migrate_mm_wq); > > > Please don't drop Reviewed-by or Acked-by tags. Otherwise reviewers have no clue which patch they already reviewed -- and they always have little time ;) > Thanks for your reminder, I'll keep it in mind.