From nobody Sun Feb 8 04:17:59 2026 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.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 D03E42F7ABC for ; Fri, 7 Nov 2025 13:45:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762523110; cv=none; b=b3mm/54XnV8pamF0j5Jw7sVI6/Z7vJeZse9K/qxHiFOBbNMgiccpaQ2u7hRHUVZHIaJrXgbD06mm/R5woOsPl92ayh3fBj63qB56wgoveTnrWeVI5jjmlajoOwKfCYK35PIzyf7bFAYGzREP1WWt9I/kIucmvCbpY9oamqivMgI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762523110; c=relaxed/simple; bh=Z7b9EvNVsTIOgVW854RzAhYgYT7r8jwyeS6vvlP+sCo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=AKI0DksmfbHqh891JLchAFmREJtPfdyv5GCrnVWj4ZccA/jCpNwXB4fw3OzwLNPMFUEBLC/8gjt7524mmzty6MokG8tpPqAyg+KOprRhPPP6SRFIXO44zTlDbl80goDbyJ8XxjOysDAn95506RHyxsWKXmvrtiOdxVKK4x5KSHA= 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=GPA4gY34; arc=none smtp.client-ip=209.85.128.51 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="GPA4gY34" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4775ae5684fso4075095e9.1 for ; Fri, 07 Nov 2025 05:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1762523104; x=1763127904; 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=Aqlg6h5PejcfsHJcPU/gba8WV8jhIrIxPWFwCEoKBmc=; b=GPA4gY34GeEB9Wotmac5siDaXgRbSNF1gtenJ+AoQ9brwil7+In/L55Efd50P14w4D NOy/z4AxuDp3WUr7iV1W6qr3NpzVPG2m9nyMocKN53A0OtwDTAG9T9Yw6Rj2Pw4joOUG eacmb9+rAKIxO5SXJPT8J3x9uMWItH5Kk8A+pxhJVk9bwUYHAhCcgL9DcKp3CmTJrjik m5AmGk5lEiznFhJX2qst/VVGpLCAUe9SDzj2i3EQw4viQtkHBRtyFfAEK1aGMDqs/oZD wZBmP/egn4BHT/C4ktdSbuIXbUTAGjX0430lJVCGLlZMay7swbPXEGw9ep+Of1xo336P SoNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762523104; x=1763127904; 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=Aqlg6h5PejcfsHJcPU/gba8WV8jhIrIxPWFwCEoKBmc=; b=Bn/aqY7QRYm/CIPq1CTL2Gw0neSzvhVCnURAf0Vhdm4t+kjK74RrDScgyM5HR3hEt6 UGSAR/R7F54SVAJ0zR7V/t1+MHsYkld2Yri2/iKLPOMmAG1YqPNKO90bUyDqhPZ6MlWV AGbq2m3gVl1vb1wtnCeGs/FIqXWZ2FS6xmo7z0Cf1GGEH941hzvRrY2k3Flf/n7C2ynu 5HFgU1//0ySxvyrNvvhPeI/lbSpAipOjQkrV8NdD3lXLvUxNSb3SIHRl+M4vxd6XmS2w giO9QKUIFiOb5xd2d1W5MBDyAFjPG/4dl+xAIOVSV4lctv6z+Xp4G6nSl7Ngs9Mo5Rxz 4wqA== X-Gm-Message-State: AOJu0Yx6lmHWQJVaBE5CKlEfPsQZPxl/t21A6I4BvzwMwyDLUAVwUJCI qNUmdEx0vBhXxYNZMwcwQHvrzINPA7sKTniLGuVhCnHRWqz+vFEzKvUeZcp55blRu0iafGYSSxj lZwWJ X-Gm-Gg: ASbGncsYsdg9AB76gTrebmEpqSvwm0RtmYnQ9c06RJToJrsDp9OdUzqhwbD9LiZmkPn uFM+mKYtoLHqR0LDGA5wFnsLPzFH4Trx8waSArj8zWfkk3anundcxrLrqgtEr4xjy/ssm7ZdC0C 86qNtb3Dr1rxbeSkIfbPBi7XIB0P1vliEy2UWu0ER/UJWZcSuRcjJeuPnNFR3SjEm9shvZ+kVlL pvrLzloJonHK8Ts8nJrEi9i3DLSKxYEKOPGZSKL5WGhaLPzaP2Alcf8lOQI3ZD3SZNiTHHIcodG /vsDZcrrgHQ5MY5emGKI89olEdG/jQYSwiiQWl5dxlMHHxFrH7q3yZdQzhc2Uz6V4ZudecOmfQg MxclRREagBurTAA4rFK9keJUlzHed5Y+hrLnYlYls1+2rC7qf41KfeZu4CKl3YJJztFsgY1GdNL muLzZYMdsoPP18+j3F/tb9t61C X-Google-Smtp-Source: AGHT+IFpZyba28WKyl422zPLm41vfwB1Tx6c+F358chDdmmWGy7/8ZYNpD09113Drv9QcArg+dOETQ== X-Received: by 2002:a05:600c:1f0d:b0:46e:4586:57e4 with SMTP id 5b1f17b1804b1-4776bcb8963mr24023815e9.24.1762523103775; Fri, 07 Nov 2025 05:45:03 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42abe62b23csm5282046f8f.10.2025.11.07.05.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Nov 2025 05:45:03 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Karsten Keil Subject: [PATCH] isdn: kcapi: add WQ_PERCPU to alloc_workqueue users Date: Fri, 7 Nov 2025 14:44:52 +0100 Message-ID: <20251107134452.198378-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.51.1 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 Currently if a user enqueues a work item using schedule_delayed_work() the used wq is "system_wq" (per-cpu wq) while queue_delayed_work() use WORK_CPU_UNBOUND (used when a cpu is not specified). The same applies to schedule_work() that is using system_wq and queue_work(), that makes use again of WORK_CPU_UNBOUND. This lack of consistency cannot be addressed without refactoring the API. alloc_workqueue() treats all queues as per-CPU by default, while unbound workqueues must opt-in via WQ_UNBOUND. This default is suboptimal: most workloads benefit from unbound queues, allowing the scheduler to place worker threads where they=E2=80=99re needed= and reducing noise when CPUs are isolated. 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") This change adds a new WQ_PERCPU flag to explicitly request alloc_workqueue() to be per-cpu when WQ_UNBOUND has not been specified. 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. Once migration is complete, WQ_UNBOUND can be removed and unbound will become the implicit default. Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/isdn/capi/kcapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c index c5d13bdc239b..e8f7e52354bc 100644 --- a/drivers/isdn/capi/kcapi.c +++ b/drivers/isdn/capi/kcapi.c @@ -907,7 +907,7 @@ int __init kcapi_init(void) { int err; =20 - kcapi_wq =3D alloc_workqueue("kcapi", 0, 0); + kcapi_wq =3D alloc_workqueue("kcapi", WQ_PERCPU, 0); if (!kcapi_wq) return -ENOMEM; =20 --=20 2.51.1