From nobody Thu Apr 2 20:22:00 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FFD1405AA6; Thu, 26 Mar 2026 16:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774542835; cv=none; b=CClNsazBriJhFKINQICMu2u0anuM+LdrF9Sg6p/Ny4HEXC8MaiE8H9ee1bb2HBQ/QZwyp0ElT244mIY2teMMj6MVIctYBZ6psWaa6kvHwJkaJHmmYnoHu6A25Qz+N6MPwAqS89lVy55OUu/+CAoQljjBiTmuT8zzaeUhK1Ffxug= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774542835; c=relaxed/simple; bh=e5F42KK3BSTcPDjcRQVX/aeFMlY+bMRALWtEdTpdKUY=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=VJfTwvbBhF+I38Cdx2lmRRxa369/RRF5QUV274wp0fyeh6oBsBKVOA1BMVd82P9mW59U6P2mdtHcxz9QVb2SxOMeq96v8nGMo9m7Rze8OTFrzIV4dM8wPvvRa8G6gxiw7k/VLHRaeqpu6xDd5D2hg5cbExJxxjbXqXbe8z/Z8uk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=CyIPMTGB; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=yGP7kCh1; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="CyIPMTGB"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="yGP7kCh1" Date: Thu, 26 Mar 2026 16:33:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1774542832; h=from:from:sender:sender:reply-to: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=w7dXE3ZvstVGgN7oujm8y8VkG31gq9Q/rWrQ6uqeR4k=; b=CyIPMTGBb7KdwrBrFu2fPHOhq6hfpgK7pb3+1FjctY1o8k+oCCnXNRwNtnY3az1BI540O3 9AVTQpy8eezG0rUdIUGXC9MXdOA1zpwlgfG5StxKsspee8xeQeteSnZnqys2zFiWZEnLJm 8jP9wvO3ZESIcp50X6A5TAtdrqCGjXTOPpq9RMrAMFqZlHUOnFyckX8EJD77PxOEO0W8mR t0fLIXgiuDXUkWsQnf11+LczmQ66Y9REuILFsDGaCCyeHCqWUaRvZ8Lf0tcVmqps7vjaH2 kJvn6I4TJQPTjmj16GggJaZ9JcEHhyROkJVTV3sZM4SAEscDwCa53Eci73dHAg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1774542832; h=from:from:sender:sender:reply-to: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=w7dXE3ZvstVGgN7oujm8y8VkG31gq9Q/rWrQ6uqeR4k=; b=yGP7kCh172ohvW7fHoCpZMT5WeE9M5GSJ09ijOIcU16z2Ofj/rbEM9DnL7aW9G+86QIB7c Sz4w2/NpFmKm/LAg== From: "tip-bot2 for Marco Crivellari" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] smp: Use system_percpu_wq instead of system_wq Cc: Tejun Heo , Marco Crivellari , Thomas Gleixner , Frederic Weisbecker , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20251110170332.319314-1-marco.crivellari@suse.com> References: <20251110170332.319314-1-marco.crivellari@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177454283059.1647592.2453045790279166773.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the smp/core branch of tip: Commit-ID: 7eb28030f641d5bc7682c98602f896304efd31d2 Gitweb: https://git.kernel.org/tip/7eb28030f641d5bc7682c98602f896304= efd31d2 Author: Marco Crivellari AuthorDate: Mon, 10 Nov 2025 18:03:32 +01:00 Committer: Thomas Gleixner CommitterDate: Thu, 26 Mar 2026 17:31:35 +01:00 smp: Use system_percpu_wq instead of system_wq When a caller enqueues a work item using schedule_delayed_work() the used wq is "system_wq" (per-cpu wq) while queue_delayed_work() uses WORK_CPU_UNBOUND (used when no target CPU is specified). The same applies to schedule_work() that is using system_wq and queue_work(), which again makes use of WORK_CPU_UNBOUND. This lack of consistency cannot be addressed without refactoring the API. Continue the effort to refactor workqueue APIs, which began with the introduction of new workqueues and a new alloc_workqueue() flag in: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") and switch smp_call_on_cpu() to use system_percpu_wq because system_wq is going away once the ongoing workqueue restructuring is done. Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker Link: https://patch.msgid.link/20251110170332.319314-1-marco.crivellari@sus= e.com --- kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/smp.c b/kernel/smp.c index 0fc4ff2..6c77848 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -1185,7 +1185,7 @@ int smp_call_on_cpu(unsigned int cpu, int (*func)(voi= d *), void *par, bool phys) if (cpu >=3D nr_cpu_ids || !cpu_online(cpu)) return -ENXIO; =20 - queue_work_on(cpu, system_wq, &sscs.work); + queue_work_on(cpu, system_percpu_wq, &sscs.work); wait_for_completion(&sscs.done); destroy_work_on_stack(&sscs.work); =20