Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5339926rwl; Mon, 3 Apr 2023 19:01:10 -0700 (PDT) X-Google-Smtp-Source: AKy350arbJPNCEF1+ZMBmt03BQ1uOLj97N0N4vjeCpDnr16C4o3vTaTKefWgJsTkg7nVf4tbjV5N X-Received: by 2002:a17:90b:314b:b0:23d:2f73:d3c8 with SMTP id ip11-20020a17090b314b00b0023d2f73d3c8mr1026369pjb.42.1680573670038; Mon, 03 Apr 2023 19:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680573670; cv=none; d=google.com; s=arc-20160816; b=uNxkKhpI/wYKjeFI2+ZPXMMGNaksB45fT0nTqTnI8OD4qZnoGHXXcWIKKPuIp2MM1h kOlQLSx6VPXDWffQW4GXC+mqGEGWpAXt2XcWYvX8NK9oRn6HoPrwTxy1bIL7x8rAQfo+ iny8T3v7t1HBq1s5J9oSoTAqxo8ua5WqTA363Eos6nz0hNYXwdaduDE6izUGbFozKj2P J0uZmS1pZTAhJJezv1yOXRYInk0oapjd1u013lGQmchK1Dbq2Al8nabjmSBbr+prswvZ B1+/ig+Z6/i0oDONDZq0xlffJEYjllcvjiJoaZoenRY8sAGp0X/7UpYeaAaV6r+Ecg9J uMRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+zr8psUVLujdU6FGyo5z+7WvDuxdPOZjRRhv4uBwMUI=; b=IL8s3diO49rb5tko3rLLCSbJwo3HWpBhbWSmVzUObHiH39dK+BX5C6jCC/PDEoMkee UGySJPvYf5xknOIzhQ0is2wcBkfcEJFGmZeXnRb0ar7bZQFysa+87mcya4piGtS/KTgK im4q5v/f0s1rTmAghoaT+px74s+AM9ZWPofhJd/3Bhs8V8YKIw8LFKgh+2sFMuFVJfgK RaoPijSLXmBzEBGTlRTNHUnZMG2zYdvoaP01lvjEsPmZMdnYhdoR7QX5dy2OVmxdb/90 ptDvzftxCy+slpEHELy3IKeAnt+kdnvF+bLMrWqTSfLLC0imoxSvjW5GHxkgVYFRFx2t E6Zg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 95-20020a17090a09e800b0023fc6dc1092si13636008pjo.145.2023.04.03.19.00.55; Mon, 03 Apr 2023 19:01:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232816AbjDDBmi (ORCPT + 99 others); Mon, 3 Apr 2023 21:42:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbjDDBmg (ORCPT ); Mon, 3 Apr 2023 21:42:36 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8F8B90 for ; Mon, 3 Apr 2023 18:42:35 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.169]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Pr9Vv5FB7z4f3w0M for ; Tue, 4 Apr 2023 09:42:31 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.127.227]) by APP3 (Coremail) with SMTP id _Ch0CgBH9CGHgCtkmLh6GA--.26422S4; Tue, 04 Apr 2023 09:42:33 +0800 (CST) From: Ye Bin To: dennis@kernel.org, tj@kernel.org, cl@linux.com, linux-mm@kvack.org, yury.norov@gmail.com, andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk Cc: linux-kernel@vger.kernel.org, dchinner@redhat.com, yebin10@huawei.com Subject: [PATCH 0/2] fix dying cpu compare race Date: Tue, 4 Apr 2023 09:42:04 +0800 Message-Id: <20230404014206.3752945-1-yebin@huaweicloud.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _Ch0CgBH9CGHgCtkmLh6GA--.26422S4 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY17kC6x804xWl14x267AKxVW8JVW5JwAF c2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII 0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7xv wVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4 x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG 64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r 1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACI402YVCY1x02628v n2kIc2xKxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F4 0E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFyl IxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxV AFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_ Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUrR 6zUUUUU X-CM-SenderInfo: p1hex046kxt4xhlfz01xgou0bp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_NONE 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 From: Ye Bin Ye Bin (2): cpu/hotplug: introduce 'num_dying_cpus' to get dying CPUs count lib/percpu_counter: fix dying cpu compare race include/linux/cpumask.h | 20 ++++++++++++++++---- kernel/cpu.c | 2 ++ lib/percpu_counter.c | 11 ++++++++++- 3 files changed, 28 insertions(+), 5 deletions(-) -- 2.31.1