From patchwork Fri Jan 12 23:36:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dennis Zhou X-Patchwork-Id: 19001 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp501882dyc; Fri, 12 Jan 2024 15:37:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdQqktoNNqStf3A1mRShlLxgT59vjTHd8LsLzzMdxiqyAa1zySgCLqUNmma13ptC/zL2OZ X-Received: by 2002:a05:622a:1c2:b0:429:8792:b64f with SMTP id t2-20020a05622a01c200b004298792b64fmr3101968qtw.55.1705102648312; Fri, 12 Jan 2024 15:37:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705102648; cv=none; d=google.com; s=arc-20160816; b=GAZ/Ejsxpof56Ku2dCtD/0+YJ5/huWYh/3hZ3EjieeX+JxnhmCjXvIFl/K/4OwP1HR YRBgW/ZMqUe75iQLTENXjr0IvLPOS+b3Kz1z1vfJAfzt3wuQfDC0PnNFBXwZzJR0TpCo uHw3LRKfcbgqh3tDqfTBb7nZR/MngzxgK6qy3NuPUZmN9Cn6YMIv7Mlyp9JQvGVVTiAV Hgme5b9COVw+4U6OkLyX2furmnNKg3sSuYkGbWGa8b1tyzrsimIRi6+6xFp7RxPYr1Fi dRjwGzyXvartBO5OAPXTw4P7l1zcNvFkMeSwu2Dey3X4P40xD4Y0AInYo3g64PZlVg+O F3Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=SVfOI8w12aI3+T3TMUSSNd7UpcAZD7/xtS98IbT/+6k=; fh=VBIin8P6pr5d14n52e6pnasLsTR6ydBySIvvstEs8TM=; b=c70f8j2q3cRQyzj4gBkoAPuMCQmee3tmzJkls8HcVvShrhlNkE/WT1yZGag3wki6NK nTYTixIi1Kf7JJ2dhj3KQxoux536ZJzsPaaoucEiylyqKituGk+/6LsS2eSmcKy/X5sS Vo0ayFxQQUWYk/4CP5GEMEUkeqqI9Fjthn+Cd+wUUpjBzdw8RUgo+T601eAayiZcllmi BChQMu+BiJHqtnvNxl8/g4QwD8AaZo1oZHREn7eoN80NLoJCii7JJ+z2fpA/8eKH967e ZFV7n1FuEExGnRKZtpBzkDkru4Vp5QALZBN+LX4G8GJDKT6QW/krU2EH9WC2LXntN436 YdVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25103-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25103-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i10-20020ac85c0a000000b00429a6f45c2esi3975259qti.598.2024.01.12.15.37.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 15:37:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25103-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25103-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25103-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1D7421C22042 for ; Fri, 12 Jan 2024 23:37:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C466B1A700; Fri, 12 Jan 2024 23:37:14 +0000 (UTC) Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F155F17734 for ; Fri, 12 Jan 2024 23:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f51.google.com with SMTP id 46e09a7af769-6dde173384aso2709309a34.1 for ; Fri, 12 Jan 2024 15:37:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705102631; x=1705707431; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SVfOI8w12aI3+T3TMUSSNd7UpcAZD7/xtS98IbT/+6k=; b=AeqAI/OkLSjCu61nLjU5ekoC62A2ndu1dNFq95J/lhVv6eCt5xXtbCoNuJk6TEVq/r YVhD5Y0SN8kVxZ4a/OPtAglbII9WIbSqzN3URimSgkF540PF6MF+iz/s+PJCXWQRvSyD a4vkHjHM7JisVwgkKM8czF7RytOfPkFonWO5T1HLzts7SHh17C9NsiWqon+jCEcokY7x JXM67YUQWU2lCQwQTGU7dKy9CaWl1hEQqwZ+YWiRzJSlCp4C4jyaZl2qwspvzHfajz1t hvmqLWH6MmC3YIIaKaCDLyLmIFS/zGlljiGKu7Sb0MUKP4C/MYNQmEt+dD+nu7s0KJZr Z7Ow== X-Gm-Message-State: AOJu0Yzk7aAk5sDomv78MwcdaItsDOeQ7rd3oULn7i0AsgJKH8cQdn3r 9s9heE+znNnJTMamw57JiDkot8fjjyq8rA== X-Received: by 2002:a9d:5c11:0:b0:6dd:e286:309 with SMTP id o17-20020a9d5c11000000b006dde2860309mr2194781otk.76.1705102630992; Fri, 12 Jan 2024 15:37:10 -0800 (PST) Received: from snowbird.lan ([136.25.84.107]) by smtp.gmail.com with ESMTPSA id x5-20020aa793a5000000b006d9b4171b20sm3676811pff.112.2024.01.12.15.37.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 15:37:10 -0800 (PST) From: Dennis Zhou To: Tejun Heo , Christoph Lameter , Thomas Gleixner Cc: Peter Zijlstra , Valentin Schneider , Dave Chinner , Yury Norov , Andy Shevchenko , Rasmus Villemoes , Ye Bin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dennis Zhou Subject: [PATCH 0/3 v2] lib/percpu_counter, cpu/hotplug: Cure the cpu_dying_mask woes Date: Fri, 12 Jan 2024 15:36:45 -0800 Message-Id: X-Mailer: git-send-email 2.39.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787929714093441308 X-GMAIL-MSGID: 1787929714093441308 Hi everyone, This is a respin of Thomas' series [1] against v6.7-rc4. Largely it's the same minus a slight change in percpu_counter.c for batch percpu_counters and updating __percpu_counter_limited_add(). I don't think we reached an alternative resolution here so I can queue this up and give it some soak time in for-next. [1] https://lore.kernel.org/lkml/20230414162755.281993820@linutronix.de/ Thanks, Dennis Dennis Zhou (2): lib/percpu_counter: Fix CPU hotplug handling cpu/hotplug: Get rid of cpu_dying_mask Thomas Gleixner (1): cpu/hotplug: Remove export of cpu_active_mask and cpu_dying_mask include/linux/cpuhotplug.h | 2 +- include/linux/cpumask.h | 21 ------------ kernel/cpu.c | 45 +++++++++++++++++++++----- kernel/sched/core.c | 4 +-- kernel/smpboot.h | 2 ++ lib/percpu_counter.c | 65 ++++++++++++++++---------------------- 6 files changed, 70 insertions(+), 69 deletions(-)