From nobody Sun Feb 8 07:57:52 2026 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) (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 5E27B3904ED for ; Tue, 13 Jan 2026 13:50:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768312243; cv=none; b=NCe+hDRXNQYC4q2f+B+qDkZQWy/FSPXMKIjG3+hx59Nadl8+af17OA7P9CiX2kKUwnK5cjnYFGq9hUyXBsDQOwvbNCGltEV+PSajp4OcAxKzO6ukpCBVjfGz6dc5WYRVIsgFnL/aeESUtbqT5Ry6do1SV0l1hGWQx+3dKO/HVR0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768312243; c=relaxed/simple; bh=Mh1dr1cuYM+0yAkrSVhOa8PAZ8yxPbPExoI5enkqLXg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KalQjdezNgsMTL6HcPOQjTum/PbdWY5OLpUYHKJ9bFgrm4lH4ITBINF/TW9OpNwge1HQa+Quz3coArs2xP7gx1hjtXOBhfCgieCFOMS7pY8Ox37WRz3rWVneLc4PYBymVHUuA5xnJiDv0biwv0X2lNopRGmcIS3LuP0DiwmqApk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=InE1CZwP; arc=none smtp.client-ip=209.85.221.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="InE1CZwP" Received: by mail-wr1-f66.google.com with SMTP id ffacd0b85a97d-42fb0fc5aa9so3557589f8f.1 for ; Tue, 13 Jan 2026 05:50:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1768312239; x=1768917039; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xo/9iBjQpnmf6iEMFaD49O5evpMCefiL7yDrEM8hmxE=; b=InE1CZwPyWsBUkeCqSTmHTQC2cm1bGnhOZJc6PfCZLV+0zPy2Avlz+XX+2MiHMOK5z mKGd2L2eXorXLMTiZ2ka6K9sjuMlm2oZhQQe28T8E06PrcBqNFlHjEwLwkggoIAeuFmn to76V+4HEvhiRVEC518Fffe0tztE16zoOnCM5fPslGZv5VJVeP5Gbm/5N9KS3dxDgYtP giyy4Fgh+aydMUh4S6B2eauxFo4U9dSa7SFrUsuMctOpf+mlJ0GE4LUsf4JMI6UUfrCp iL9b54hMnX5Cu9v8U5oEJmRoLyUsEmiaoKGi1xCjeTeuB+MtJ2gcp+Y/oL1EXRc08T42 ff8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768312239; x=1768917039; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xo/9iBjQpnmf6iEMFaD49O5evpMCefiL7yDrEM8hmxE=; b=ubU0GNQYhkAWO7+f1HNvj1NbzWqJaw542lKG/pgqBoaUTCY4JeT8LYkkaEm1BnEgz7 XNpIRFXWippZ0oIDG7YSH6fzJqa0sBDRcecYFiaSfak1FQh3EPhQQB4Hb5cKLlqdsdVG +gD2wM8Xl7bHdnQG8RWXdStoGZRrpvvMDQ1nmhubqazN1cPQF1zsZkErvZMJScKQshSh zn9EEpwJuoGXGSmX/y+IoxpfYeP5sKHTuRGpgsV6+iN3XY4Ugks8gM2edbZufCYwlbu5 CysSudEpgdb5NiehNcaktZndHhrbTUrOIbOC7iAO1GrW2mt6+hKfp1HUfyGTXnXg5Xwe 2d9w== X-Gm-Message-State: AOJu0YzGOGS0K848xNCS0ThAS9OsCSRCBIc8FzQ6AShWAJgkJ4F6OfLm mdtMI7a7hHE29dd6s+Uh6GHuSVNKBoasDguVeB5n9kWHIX6wba/2+nDAm/vMafiFszL6pna3Zzm ZB2co X-Gm-Gg: AY/fxX5PnEhN4vsBLgicXzXYGPMwqQY9d9SXPcc/jPRH5mJ1zPCZbgu+L+LX7KVFXew AlFTPTf/wBtYJadPqv8lxfWKKxKJUNy6ED9JFgUnCakjeNMVqXunhyKSZqyKmEyGNQPMC9e9pkP PuIsRy6q6d50GBOP74cqGBoWhP4sewm8bd7XT1p6uvbwJyshU9o2NbDux6vkanGbVw6Ri68G+zt 8ZWi2dA4wR21R8mik80U/y+P3GecQlGi+utvlJpg658UyQKOfpkzZrFzW6NN2m+7EirtLdp9mP1 DH/ge14OcRGxmxvFetAefNDDdU5W9vBRXADDH6TkvSVU3KovG1eEDuSLf/XqFz9XsNCeu15sIlp Bl/htqEisQIjSPl9FFFBGm3HVe+WUjP3pGpAuNjFfHGILnIAh2raewhXtvuGQRG3eZaXnxQGkub Qm111zKK6MPpqyOzCu/dOL8vVSiplncAIQnzA= X-Google-Smtp-Source: AGHT+IGeE18Y+ZtVgOPYHINVthewsLlMI5/P0Hsr4zpDATaJDCcBJ+puQU4kmnaaKHdog8v6o/pHxg== X-Received: by 2002:a05:6000:2512:b0:431:a50:6e97 with SMTP id ffacd0b85a97d-432c374ff11mr23897586f8f.34.1768312239409; Tue, 13 Jan 2026 05:50:39 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-432bd5ede7esm45292352f8f.32.2026.01.13.05.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jan 2026 05:50:39 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Jens Axboe Subject: [PATCH] block: Add WQ_PERCPU to alloc_workqueue users Date: Tue, 13 Jan 2026 14:50:32 +0100 Message-ID: <20260113135032.184324-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This continues 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") The refactoring is going to alter the default behavior of alloc_workqueue() to be unbound by default. With the introduction of the WQ_PERCPU flag (equivalent to !WQ_UNBOUND), any alloc_workqueue() caller that doesn=E2=80=99t explicitly specify WQ_UNB= OUND must now use WQ_PERCPU. For more details see the Link tag below. In order to keep alloc_workqueue() behavior identical, explicitly request WQ_PERCPU. Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- block/bio-integrity-auto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/bio-integrity-auto.c b/block/bio-integrity-auto.c index 9850c338548d..394bfa894321 100644 --- a/block/bio-integrity-auto.c +++ b/block/bio-integrity-auto.c @@ -195,7 +195,7 @@ static int __init blk_integrity_auto_init(void) * Make it highpri CPU intensive wq with max concurrency of 1. */ kintegrityd_wq =3D alloc_workqueue("kintegrityd", WQ_MEM_RECLAIM | - WQ_HIGHPRI | WQ_CPU_INTENSIVE, 1); + WQ_HIGHPRI | WQ_CPU_INTENSIVE | WQ_PERCPU, 1); if (!kintegrityd_wq) panic("Failed to create kintegrityd\n"); return 0; --=20 2.52.0