From nobody Sat Jun 13 20:59:22 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 B8D1F426ECB for ; Tue, 5 May 2026 12:41:27 +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=1777984889; cv=none; b=e5liamyP3Y10bAEefbUHzXsrQDF9J77uZiEgVA4fIxjOLkKr35DYfJwiAYbxS/CueOI+EfJ5yLzIke0Qjd5yn+o+lQWPJAwZ+EjfyVIohwfDl12PGnoGjcGLyji7xfXXPCD091CvfKKZItpEKvUHVESjk0TqXGt3Fxyd1GEombQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984889; c=relaxed/simple; bh=OHZkHvqRymIQyrNUW7FAuiXP1B+hGUEyrb8dLcqMTSQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NAqgutz4qOXddkMZO5I69+hfhryxEgDNX1fudL7SDlbmRG0ZQmF2qOrGVMnH5HuAI3brRErl6Dvsp/BMr3jnPPZLrcsFDmNY6So5VEfBkOof0PKy/GK2m1hdTP7nuoPE8vJ8ii6zFOgLbb5q8YK0X3F97OpWVNQrN6nOMnfJrok= 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=CusSnT44; 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="CusSnT44" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4890d945eb4so35048715e9.0 for ; Tue, 05 May 2026 05:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777984886; x=1778589686; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+SbX0goFvkLXOPqreybwYaDLdubep7uJYGR6lz7aADw=; b=CusSnT44VMuukjuj8BeJlxE+XwsoTlmBGSlNiPPqfI/TLL0meYqBSz6CRpweDJYnAK 8890hfRCLZ6RSwntEqAI/yu9Dk8UE6+wduEXXg0t06CVqgZUPW0oo2CVrYWUFupmvQDT hxMVUv8WS6VhxfGVBuj47YSs487YC1a19bWIwdNg4Tyr1oJb3v0pl19tic5om48OKgNY XzPdfTqmL9mb2Q75f8wlb9Ge6bhh2LnGdR9+Q3xt0BgMzat2iufHWhwQEk6cCH+0fAOB 7+Jy384qOwBi1YXHd0unvak1cDy7P3w/eU8WnyKXq6lo+k8E1DUaABMUx9fPA9vekfYF qohg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984886; x=1778589686; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+SbX0goFvkLXOPqreybwYaDLdubep7uJYGR6lz7aADw=; b=p5h9ohzBBAnKrRSGMNmzqxvtciwIY2AcS6GQQQfBEhxJpWanjie/fqe4DdxG2phxD1 uelwVkNB8jKSdUjkYXlm5PsBNDxkfKtGnry1WRdyJuqMelmkYtpU8rATJ5zSjORkcQ9Q Lak+izrhAbKEvUpDAjG+6Z0UAgOfr1jq6B6MYf8v7uREPgM1MA6pmW8iUMTWEF4trDoN c3P/axAmY74187/DRUQ7V57wrkjlZJnoGipLm0Ihx4h45yznY3m9gxOaL2yDxJDEFqH7 p9NKgYrDcYO/ap2XqTFAmOcrL2dHngPr/K19BFC/kER1aCNawprkPBRdZlLHSPytN7pj 9rFA== X-Gm-Message-State: AOJu0YyGaDX3V5op+uKiH5tBjIA3zHBeVnWN7ZNw7rIQCVgEqbS3ePq7 t7HWmLtnyQdt/OgR8bAEh9ev4Mlea5HC7z634XiDMzj8PjLLcjxRNU8MgANCQonYZAVNsKq9/eC d8zopbSc= X-Gm-Gg: AeBDiesBrBda/vneDWj/wPMAWAK5b6e/+21ZbriQj25lLwNMs9XbHzABcKueOCm5SJs /wnG89mFrFn+a4oSPV7Phm8KIJwERRDdwXHV/ecfWQO5PTaGfPfmgiMr1eePgymNOB3SJy6hlRL nDvweCnuaO7EDxY1UfPdG6UIS+MtuQtfQr+ZEkTunuMomeHnlu7Enu2s8RI1x55GSbPwIXIpVrT 4t1AlYdJfqDJrbXWEOzfsH94L4RHwCdfC544BvrHlfEOqBHY//UKSA7u2tWLvEQCOycLgi7Tzzr P2cl/Rg23n+JRuF2IBiU4aEiZUJbLHANWeRbeuGdfH0eGxfTmoSjE1vzP22vjcZCcAPO8wkjZOi A44UbXToAPn5u9GXdJMNoT46eKobPZ60UzdiWBiQvP8RB1mG/XxmCoyb9oB8ZHRQyYR2b75PA5r oWRYTbLTLLoK1Kt2P8ZUxJtmOhRtdW26c4nrfp X-Received: by 2002:a05:600c:4f42:b0:485:3cef:d6ea with SMTP id 5b1f17b1804b1-48d1426a438mr60565465e9.13.1777984885456; Tue, 05 May 2026 05:41:25 -0700 (PDT) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a820c865esm388442955e9.5.2026.05.05.05.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:41:25 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Fei Li Subject: [PATCH 1/6] virt: acrn: Add WQ_PERCPU to alloc_workqueue users Date: Tue, 5 May 2026 14:40:57 +0200 Message-ID: <20260505124113.214297-2-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260505124113.214297-1-marco.crivellari@suse.com> References: <20260505124113.214297-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 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. Cc: Fei Li Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/virt/acrn/irqfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virt/acrn/irqfd.c b/drivers/virt/acrn/irqfd.c index acf8cd5f8f8c..aab15f94166a 100644 --- a/drivers/virt/acrn/irqfd.c +++ b/drivers/virt/acrn/irqfd.c @@ -206,7 +206,7 @@ int acrn_irqfd_init(struct acrn_vm *vm) { INIT_LIST_HEAD(&vm->irqfds); mutex_init(&vm->irqfds_lock); - vm->irqfd_wq =3D alloc_workqueue("acrn_irqfd-%u", 0, 0, vm->vmid); + vm->irqfd_wq =3D alloc_workqueue("acrn_irqfd-%u", WQ_PERCPU, 0, vm->vmid); if (!vm->irqfd_wq) return -ENOMEM; =20 --=20 2.53.0 From nobody Sat Jun 13 20:59:22 2026 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 28F8243635A for ; Tue, 5 May 2026 12:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984889; cv=none; b=HFjOlnnjCi0ir7iQyFGAdlOVf5nroaIeUVJrD7OmDrFCdsTyQ1HmC1PbIdnajuVAe8tGOLKo6g5DtvKGvZO6p1tScs2tDYdrm3sqCdFjaImJ0/Xm2Pas+dWIwMHZ4h9n+JX8vnWclpJqbbokGBKz67YchrpO0GZxaJhXBs1pWhA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984889; c=relaxed/simple; bh=GmaAT+N48lUutFLHNFv3ep+nvoqP7rTy831HR87cbE4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YrXPpDuu2wYvKz8poBB78R01jHXheaVOQsBcx2Jp8muaw/Q+WhZ4+TauiOuo0kwT6qoRkQLP66LBjZ4zr9vpvpQLLuMtYa9YmGp+i5Ug6yEsznnvbu2evLzRSOzSXjb3jtRGvTi9FbgwLtK5pE62ikFzYHTcGE+PHE1+3veN344= 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=dGQMS/Wv; arc=none smtp.client-ip=209.85.128.52 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="dGQMS/Wv" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-488ba840146so45648885e9.1 for ; Tue, 05 May 2026 05:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777984886; x=1778589686; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MI/5IJ3e+ldinfDgX6gmo9Im5PY+/ssJmcCUdcdU+1g=; b=dGQMS/WvIKmRoN/djvqgAaiyANFG9/W2gFZVGUf1i4n8N1X+Vz0exshWhBF1sHq3vT 9xB2mXkmLJCSyqigzYSGYvsleSf1fLfrofdLso0CCkBPZMwgYTFqT3t5T3qH8b6EKp8Z ZXQvGvCVeAm6SOqoyuPaQ+k2fN0g8UWgQhPbIwDVFiM/NoQuv/KQcSUEkzLCzrwJl8nr 4dRMQMTCobJ0XPsMy4NwyMRE2eOu3PgeemnccK14j3/ldfJb9+hXr2Dbq42X5KAvsyg4 2411eIZ1JJRCga7ND/ljuyFpnX8//m2QZh1+SQI5c6x+qzPE1Tj4Z+ge6XmXkYI9oj+a zGMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984886; x=1778589686; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=MI/5IJ3e+ldinfDgX6gmo9Im5PY+/ssJmcCUdcdU+1g=; b=pq1riC0bk7X0+1rAItZDAmRhuB8ORFLesRbM6t8DE4zE76ED89l4Z86adac40kH1Na kwY9opzkgGxUX1N1+gjwO9x1TjJPzlFFZoHeeJ7w1O6JCowi4MLATe3R08seJtzoq5mM n7WTu3ClosbijTu/DHngJnfUplDdbx3EpKMgqgZf+qwba6yGV3VmbKkafEJs7zZVbP42 zPkgB7uu8CWK1GAQ2t+r4fjumhNVZqdA75RGHhT7TjUNjD2kMQYGIDH7SgSOxaVXazdb 0PFDkEs1NN1C3mncrkJHgdBQCY6h+SpqQd3AkxLJ5ekvnRPf5ZApsDEnUQ1R6Et4MoS4 MvOw== X-Gm-Message-State: AOJu0YxGoINjj4aVgtjga4zzBhZMSud2tH/3n0MesWJ25T8trTh8LQZR VMI1D6OL+LicGthzBGKLGUtwRLEIyhOQQQXRWfFsTP/TR1zH0JlCSmRPPfxzGYOU8IlF9zhqlfn xW4SqDgM= X-Gm-Gg: AeBDievtjAZt2/+/zbxLIGsnY3HppeMbbgvYga+24rQlo0LackC+QaDTpuPS4kDtJh5 39/BLsvaw8N66N9L2Np6PUhB7G/TMhISZ6KXRixluUidN2tbz1ARMqfJxN5kHUNZWDBZZDhFSEg 0oLki0jfSerrGI33q7sHPocAyhX2F1h19dg+pbGgLCMdnVHhhSVNBo2JToQ28gdZM/StaGkoQf0 dZM2roDV3o26Igmvp4u7mollYUjvhbcP73A9nJ4sTSBG26g08dR/k6Rgtx6rIR31OAeCc66aKpu BYEV08MswY9BGCBQVGaBGEL3My77l8l1RweTzUhcMfx9oCDDqz/Jqll6vnZHNTv9t+Y7YefmTuL fuSzVUxdbPn+Omp/V4Yk6n3/eymdkeorZ5d1rMe4Q9HtoGvlzHVqlJs4U1Q88mbXC42xN3Ag01W xpX4bGvENPJ7VCnOF6HbM/eHmv0uuBat+sLhrEKp5F0NP/Qrg= X-Received: by 2002:a05:600c:3b02:b0:48a:6fd4:d3d4 with SMTP id 5b1f17b1804b1-48d18ceff2dmr46158165e9.29.1777984886279; Tue, 05 May 2026 05:41:26 -0700 (PDT) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a820c865esm388442955e9.5.2026.05.05.05.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:41:25 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Mauro Carvalho Chehab Subject: [PATCH 2/6] media: synopsys: hdmirx: replace use of system_unbound_wq with system_dfl_wq Date: Tue, 5 May 2026 14:40:58 +0200 Message-ID: <20260505124113.214297-3-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260505124113.214297-1-marco.crivellari@suse.com> References: <20260505124113.214297-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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch continues the effort to refactor workqueue APIs, which has begun with the changes introducing new workqueues and a new alloc_workqueue flag: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") The point of the refactoring is to eventually alter the default behavior of workqueues to become unbound by default so that their workload placement is optimized by the scheduler. Before that to happen, workqueue users must be converted to the better named new workqueues with no intended behaviour changes: system_wq -> system_percpu_wq system_unbound_wq -> system_dfl_wq This way the old obsolete workqueues (system_wq, system_unbound_wq) can be removed in the future. Cc: Mauro Carvalho Chehab Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c b/drivers= /media/platform/synopsys/hdmirx/snps_hdmirx.c index 61ad20b18b8d..1061ab50dd64 100644 --- a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c +++ b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c @@ -1776,7 +1776,7 @@ static void process_signal_change(struct snps_hdmirx_= dev *hdmirx_dev) FIFO_UNDERFLOW_INT_EN | HDMIRX_AXI_ERROR_INT_EN, 0); hdmirx_reset_dma(hdmirx_dev); - queue_delayed_work(system_unbound_wq, + queue_delayed_work(system_dfl_wq, &hdmirx_dev->delayed_work_res_change, msecs_to_jiffies(50)); } @@ -2238,7 +2238,7 @@ static void hdmirx_delayed_work_res_change(struct wor= k_struct *work) =20 if (hdmirx_wait_signal_lock(hdmirx_dev)) { hdmirx_plugout(hdmirx_dev); - queue_delayed_work(system_unbound_wq, + queue_delayed_work(system_dfl_wq, &hdmirx_dev->delayed_work_hotplug, msecs_to_jiffies(200)); } else { @@ -2253,7 +2253,7 @@ static irqreturn_t hdmirx_5v_det_irq_handler(int irq,= void *dev_id) { struct snps_hdmirx_dev *hdmirx_dev =3D dev_id; =20 - queue_delayed_work(system_unbound_wq, + queue_delayed_work(system_dfl_wq, &hdmirx_dev->delayed_work_hotplug, msecs_to_jiffies(10)); =20 @@ -2518,7 +2518,7 @@ static void hdmirx_enable_irq(struct device *dev) enable_irq(hdmirx_dev->dma_irq); enable_irq(hdmirx_dev->det_irq); =20 - queue_delayed_work(system_unbound_wq, + queue_delayed_work(system_dfl_wq, &hdmirx_dev->delayed_work_hotplug, msecs_to_jiffies(110)); } --=20 2.53.0 From nobody Sat Jun 13 20:59:22 2026 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 F1E87438FF4 for ; Tue, 5 May 2026 12:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984890; cv=none; b=p7H7msMINXFhy1hClj4jRT0MFpvBAITz/WaCPdzSnO1UNMCZ+VJ2O3nI8/p/m0iuL7MJ1oVvzZD+yvZAlYGd0A+nS/erfeV1YJFpFeNsD75FIo5uKuUOMsHYN/BYqDuIeN8KQAmNeP74reKSsTHccnkhVQuPrQa5BpaEUvkzrlw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984890; c=relaxed/simple; bh=Hty96BS5PtbB2Q58EmJu9tKRMSTamL3pn4a+cQHpLeg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A7fDt2sRMrUwxh9eK1S0uUrhXtQxbsbT3qYMphHCZDmRT6KGZb6ynLCWcwk2gCKdrE/lm9cYNMQ+MmVEaxri79Jd8A/pTOzFrHzVfuWkBOIylgUixSmm+SEZ6ymIC7sdw+iIX8a8xG+maoe/VS6fZquZB1ShHZAk5TC8SLIFu9Y= 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=IfucqGDi; arc=none smtp.client-ip=209.85.128.54 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="IfucqGDi" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-48909558b3aso56907735e9.0 for ; Tue, 05 May 2026 05:41:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777984887; x=1778589687; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qrb6aTY9fjzTYjfhR4sj37L4OIFFkdMpt+CucvwllCc=; b=IfucqGDiCCzz3Zq9cxpXHJYC5n/wWm4dH1CIcC7gTJXUCN/i4E+iBAi/GsRXb1PgdW RL8CFEYQXLUAf153XRIPmgLr4e+5r8KU/pg5HOodUVQu9zSy9e4B9AejuogpR388c/zX j0U6oboYaVzKddAGuVOsSBg/2NMjrJhQr79gPqNX0ucUaZ+QIESIGKplX7GFeS9p3Gr2 pGr5sCo2k7gG8lC7jt38a8K9C9HvKW68Sx0ODNFhVTlW5HZ5P1E7P/sk61F/k1RXxzUH 3xJr3UBK3fgKIHFmJ1NLvrPK3rOg6VN0nm18I+a6TWcd5J2v6nuUwh7LWBVwnMTBRx1Z 5oEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984887; x=1778589687; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=qrb6aTY9fjzTYjfhR4sj37L4OIFFkdMpt+CucvwllCc=; b=YUS5DroXcEZvt7gEifD7A0ALMRrdSHZrNk4vwQiHIGfdDi9JUND/xma55W+cVbhWuK Uwn6+eGXx85oD9i57b0ih7dbrqYSXbA9QWDpaeJlBD9ca7xHpJw06U20Q4oOZaSNkVbf CU6l+/iNgPO3byTH8NRQz7vqJ+C2VdRmuxklSnSNvVC1qXMZ2D9yRV1uQ022dFDckoCF TXfreh1FltkWMs1wJvlmkW16LFuCG6yAQ1NA9iQPkm3/OEpug4nPhtsgIZaRYxAIPS3j fE54PQXKPlR7ZUdmshu8yZYBAyDmD2dXOMA1d+07NCdQqbF/7/HtM0Wj4dVSRfoXlwvC ECOw== X-Gm-Message-State: AOJu0Yzd9JTrrUyRpHLDuyAw8+VkgkmpUKGtW15nJHfowpMW/VCi3Jmf C+3zkVsfAqbfKmUyNl9i8tC7rADJLm1dvxC0WxAIFCp+roXpprxQNB2lTtZawTuny51/lMjKH0c 5zztLGUI= X-Gm-Gg: AeBDieuuAh/sSHKf433kvWvachre5P7DTfeIxxm/Gt4gXbsGO8xhIgWKzHWVNXNWnMA lWrwMUarCLQ93ym3w16MuDb50NUg/LBy0Xqo0aCWsRh46YFGrJKPU4BQdhASH+13tZQsTvhnouz 7aPnD9hwRJ9Kk1LihkgQg1hnPJ3I9jgHQSzp+kCkSn54WY+X6tj7lAPHAHdFdrwndluUfYaN48e MvDb9TMcksS+awObeSYNhgWpE6XJI9tfXWklzDrZjoUMzRfSaadC+zUCf9ZUfPl+PiHoH5BNNox ABvvKuYyZQkTHJ45LzrXKOzoRy2bVWy2RDCMWt5Yr7JGOCpEx8F7Ex3bGX4zH6ITrmuzd7Onejc RCRakFK1awcn6W0/uYsTcS33udK1Bdu4RemWrLZQPxe1iBj85pyMD0jNCiiCZ/qV9WZpfQ3u3w4 9wE61TLfZlU/kIztZayo/4olyNg5Ey8Bx30jAwMl2Jd6sXJFs= X-Received: by 2002:a05:600c:c089:b0:48a:53ea:140b with SMTP id 5b1f17b1804b1-48a98676b77mr195413455e9.28.1777984887157; Tue, 05 May 2026 05:41:27 -0700 (PDT) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a820c865esm388442955e9.5.2026.05.05.05.41.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:41:26 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Marek Behun Subject: [PATCH 3/6] platform: cznic: turris-omnia-mcu: replace use of system_wq with system_percpu_wq Date: Tue, 5 May 2026 14:40:59 +0200 Message-ID: <20260505124113.214297-4-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260505124113.214297-1-marco.crivellari@suse.com> References: <20260505124113.214297-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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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. This patch continues the effort to refactor worqueue APIs, which has begun with the change introducing new workqueues and a new alloc_workqueue flag: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") Replace system_wq with system_percpu_wq, keeping the same behavior. The old wq (system_wq) will be kept for a few release cycles. Cc: Marek Behun Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari Acked-by: Marek Beh=C3=BAn --- drivers/platform/cznic/turris-omnia-mcu-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/cznic/turris-omnia-mcu-gpio.c b/drivers/platf= orm/cznic/turris-omnia-mcu-gpio.c index 7f0ada4fa606..4e430d6c3fc4 100644 --- a/drivers/platform/cznic/turris-omnia-mcu-gpio.c +++ b/drivers/platform/cznic/turris-omnia-mcu-gpio.c @@ -893,7 +893,7 @@ static bool omnia_irq_read_pending_old(struct omnia_mcu= *mcu, =20 if (status & OMNIA_STS_BUTTON_PRESSED) { mcu->button_pressed_emul =3D true; - mod_delayed_work(system_wq, &mcu->button_release_emul_work, + mod_delayed_work(system_percpu_wq, &mcu->button_release_emul_work, msecs_to_jiffies(FRONT_BUTTON_RELEASE_DELAY_MS)); } else if (mcu->button_pressed_emul) { status |=3D OMNIA_STS_BUTTON_PRESSED; --=20 2.53.0 From nobody Sat Jun 13 20:59:22 2026 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 DB80C43901B for ; Tue, 5 May 2026 12:41:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984891; cv=none; b=b1JaPZxJc8hVPRH0WU7lpz2Cd/fbOvovIhikl1cCPMipzZ1LwahPvFuvv7VCZO6mVLOswHH+xQVrSCm20s5Yqh7/LBN+KGs9d/ah90MmEoYBLsf163MEsDb8zyqKFr7v7WST4iKAdC+f4ubHUZyYj7mtwmZyhiZunM01MuXOESU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984891; c=relaxed/simple; bh=22+pN8xkN9sUU/GGW9oQ9E8bklsLevG3MuOqmZhd5Ns=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CSdYdWUU7KWkaZljO6w4J9T4qgsfbkjj7coTOi/6n/FpCZBVsk8LFqTCwEidmEeJKW2zJZY7D0Xdh3xn0zxvh6wDMF9bCr9EDLXfF9Is5r6A7JqipVDwLys3LD5ElpRbLkuzlj3UsByoLdP69+6cKmQqagWAUcAFItAezA5ysi8= 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=EBPYP+Ns; arc=none smtp.client-ip=209.85.128.43 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="EBPYP+Ns" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4852a9c6309so42321265e9.0 for ; Tue, 05 May 2026 05:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777984888; x=1778589688; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hdvgt/p3mH9VsVIUDK4M7D8CniRYnU2T8NrKu/zeMNQ=; b=EBPYP+NspsqnrSwQMowlB5dmaqyPb73zH5KVfiYWiMZI//jJ8InLx2Uav3omO3iFSz C/xILREOxbSZC1XTAelDaVwh135+Dleo+FHStL4edS0oJiLP4/iFr2eW6m+fPObKEEKk F5NKdG5sEUtq2TgeiNeJtCSseXk+amiYf2CAbIawzA8tHpC30iM+h9Q9kuzmZUprrVWG UjYPdDbdYAsfuByz6jIu+BQ3qd3HmV5lWBnxXEIbrprHuX1WLokuz3+/Kh2eitzQMDYD VPdxAZ+fPn2fEfzBIaC9TVzmniqPvhcgLtvBhMgQ8GFT0Ex5iej0+U3s0k6aUwhSPM5N 9ttA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984888; x=1778589688; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hdvgt/p3mH9VsVIUDK4M7D8CniRYnU2T8NrKu/zeMNQ=; b=Xe5Go5vxwdlU8QL/rhXHci3OnksNfsEDxvsf4OYLWgZUrpZYJBF34ZEBNcK8iF87/O m4793LeWeQVLb8w8N5PlfRbHMiohemBOaDPhzqxpUXKBR4YJFtdGeukQvqFWgDIMxLw6 eJ+N5Yw5cIdlGLfX08XmiQ1B95yhNlmHPjDn/rIvNNOT6P6Wrd0OgezMa9c/t80wMWzd QRR1EhuRn3sADDR1GEogjqhPu77dV99aIRYIuLYgcTpWnlCprwUEQ5VohiufiZei1ivo /851lf7KgmewAAbLSGtTr19a91UfxmMcDKSt3NKm7Ffvf6Bum3Q3ZMUqbb1W2BYgT6be pKgQ== X-Gm-Message-State: AOJu0YzLx81siV3yewnPXKE9WcHx9d7v+AS1HcJCNTWNluX8L99Oh0Ad 3xegV3xEPAdSJvhONL9MwheCWG5EGpEY9kT0XhAdjDcG7Pox5ikKriuPgQbwt3PrRvZtirxFGrd bXAv7gVI= X-Gm-Gg: AeBDietQrvqJHgfgjHHiDlMn7SW0+vhK02euOPcIWUAZsYE4EDq0r4TYDrgSJB/YrL3 gsysor+gc6HhBJwCyZjtbZcJDJ/+HQcyQUXF7FFSlHxoawDSjpBTmAHhh4NjOsleSngvyBdX4zC xJEQe2c7FVSNvmRxMKJ7eKXOp0H4wUe0Bd6ZGn4JmtKAq7hwcW9o+8lO4Suh6v5PtAS6s2ctiJS ZnznF5/0OSfu7B7W8p0uXk430LR5Z51SDZTzekFKn6B8fASTYqrpIKfiItkxf1nyZVtbzhf6wbl qaSfBtxHoeRVsD5cpsZpLqF7gOVkCdQWSQt2ICkuqJIe2H3awFXtkZ1q+X2ZVJ5+45R/J35UCuZ h3MKQrrcHgCq2zOTU9SyvZ0Ol4a0UCVCR8/kIcW8h/g/MGx9jexZDyVRkSAV531+G1+kxJCuLoj J2Z7QM7a3dqY6JbEFYG3EBweuJcasOQ5AZgb0V X-Received: by 2002:a05:600c:35c5:b0:488:a977:8d6 with SMTP id 5b1f17b1804b1-48d18be4578mr50550765e9.19.1777984888000; Tue, 05 May 2026 05:41:28 -0700 (PDT) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a820c865esm388442955e9.5.2026.05.05.05.41.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:41:27 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Mauro Carvalho Chehab Subject: [PATCH 4/6] media: ddbridge: add WQ_PERCPU to alloc_workqueue users Date: Tue, 5 May 2026 14:41:00 +0200 Message-ID: <20260505124113.214297-5-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260505124113.214297-1-marco.crivellari@suse.com> References: <20260505124113.214297-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 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. Cc: Mauro Carvalho Chehab Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/media/pci/ddbridge/ddbridge-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci= /ddbridge/ddbridge-core.c index 40e6c873c36d..d240e291ba4f 100644 --- a/drivers/media/pci/ddbridge/ddbridge-core.c +++ b/drivers/media/pci/ddbridge/ddbridge-core.c @@ -3430,7 +3430,7 @@ int ddb_init_ddbridge(void) =20 if (ddb_class_create() < 0) return -1; - ddb_wq =3D alloc_workqueue("ddbridge", 0, 0); + ddb_wq =3D alloc_workqueue("ddbridge", WQ_PERCPU, 0); if (!ddb_wq) return ddb_exit_ddbridge(1, -1); =20 --=20 2.53.0 From nobody Sat Jun 13 20:59:22 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 D9B3343DA4A for ; Tue, 5 May 2026 12:41:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984892; cv=none; b=MX8xpjtVZH8h17XlGTpcmxrni35Xezo+mNmSc4Mbnne0dBLewrEHxJygAc3WnDY04Q+jw0Z00zlGUtVIzEJ21DjEadnNqDfH7ppZbL1sdh9YnJd6knGlNDhZvs3x0sUUQKSt2m4jpZHjBJsINE6h4QuNes9N2tT24rQB5G89mOc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984892; c=relaxed/simple; bh=DDnH9XT9fhzdEtGpzdt+pViTNj8Myl/CaJC2vpCtFRo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TFK0y1fD4cJcK1NInAA43CLEPYA0hgysb/3ueocj5cHcTtUjrOevpBeArvXWDAvBJmGD23Un8HPlAxEw0oYPit6YFmaRcNNC//ismU49pRAElyUKJnwtQGq8SNZoJFazABsD+IZ/Kh792fxc08tNmKwRXKouQYFUm9pC9PZ4Jes= 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=XjTB+gwU; arc=none smtp.client-ip=209.85.128.49 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="XjTB+gwU" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-488ab2db91aso62168515e9.3 for ; Tue, 05 May 2026 05:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777984889; x=1778589689; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Fd0RmALr1j8PdyXEy2klnjkBilEJrpt0t612Vmw4Nvc=; b=XjTB+gwUoHANbRMwM/NosLGt5TYl2ZWbz7rWyCwel/RfrlCFliJyD3w9PszcjDaKPK 5KXAGrQUVuTKFe13A9MVRmAiU3ZDPSj5ZgjXY6dRhsgF9TURnTS4UpIzPUHj5LNNBMuN Ys8aGg1k2TvbzCjSaPvV4gfzqDzvvuDzwUt2+MrL/d1TuvKscDbgw6nJcZi95AfAvD+F 7i9VjH9jPpH3coMn7E7/9KlZZRWKlYvvnex8YTWbqwGxbg30PDL/tAvLV7IZAQQCarCa qcHx1yBHbMg6twW4RBFTvO5N9MfaDRPbvwSRhY78zGy72SKlwY9JoUxFC4J3teaMY35E eO9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984889; x=1778589689; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Fd0RmALr1j8PdyXEy2klnjkBilEJrpt0t612Vmw4Nvc=; b=as1/TOkp64ydPk61nWu6EGwcctbU+aP8OgoN65a2deQgHGeCgcKIqclEAsKrdptPyc +iRKtjKwdbdXMu8Snjx+bGB9O7QoeIoj72NgLgmJXD/9xqG4FJ3c094T74CNOk1HGS/5 3oZ8HyIxS7gK5DMD4Fo1+lp9mPyCbvBEK2eqWE73qUWSj1b8Fjfo1XehueZUJaKpLB6u Tyk7mvrUwWWeSosNoSgpdtKGxSoKpo80JC2xCo+wPCREm4DNvStSqjNyS7ppK7M/bkhW tEKNk0uoedbMFYhKnS5XcaqAVdlgYw8B5wo1wsSdf2XfikqrXaqrkEXeCoqAXORee1Oe RPLA== X-Gm-Message-State: AOJu0YxsDnXk5iY1rjOQXL8YJ9hXSijRWVQsrsW/Krmh6T3rtzEtAYpk oX4nfLCtxQrHLxb2vBCgzvmtnerS+d372A+AAS6vdzUK+SOV/iPwL8PSMihzVWluRfA+T0JCd9n 5bTPytSw= X-Gm-Gg: AeBDieukJkcyrduhEJYTg6q+63C6ruoWyJlBkstqnI8OLRxzhEGAwRxNUrAjaBLlERl 6VcOWDKVmbH/7orvd305YiGvD2crDGcsPz4yD1TUv5H/VBF2uXM3CoXbZFHSb4k9vuFHYzsqrP1 obbiJYNFdZa87hh+2DTfSN2HMTnvSayq/x82Hl8F6B5TseAyckOP2nxY/1xiNcZksfSLISErA/O OieMsWBBeaULOHUPZ2qhFzhjMKz4Kzc16UXhdq8Xr1bQq7I1eXm+/0mCBwLtL66QZNtvtUvoyYi A4Dl4LF32WDKimoiefRwUDZY+XCOq2IKqEHmz2NYm1nekbLatn4T4Mhl5qeKrVmGcthsklzCztv ywBXEwgFuZeat0Rb82VMWsU2x6RBLSGdUyXzrw9pIgiYtLYuinTyIJnvoWi1T95bs3pDgg3Q3Tg NtYB/4SEVLWVWq4BYcoUx/cSKtOfGJl3cSj56F X-Received: by 2002:a05:600c:c174:b0:48d:1a94:56c with SMTP id 5b1f17b1804b1-48d1a94087dmr45302095e9.18.1777984888907; Tue, 05 May 2026 05:41:28 -0700 (PDT) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a820c865esm388442955e9.5.2026.05.05.05.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:41:28 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Matt Porter , Alexandre Bounine Subject: [PATCH 5/6] rapidio: rio: add WQ_PERCPU to alloc_workqueue users Date: Tue, 5 May 2026 14:41:01 +0200 Message-ID: <20260505124113.214297-6-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260505124113.214297-1-marco.crivellari@suse.com> References: <20260505124113.214297-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 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. Cc: Matt Porter Cc: Alexandre Bounine Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/rapidio/rio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c index 0c175e6d424f..f45e58b0971f 100644 --- a/drivers/rapidio/rio.c +++ b/drivers/rapidio/rio.c @@ -1994,7 +1994,7 @@ int rio_init_mports(void) * TODO: Implement restart of discovery process for all or * individual discovering mports. */ - rio_wq =3D alloc_workqueue("riodisc", 0, 0); + rio_wq =3D alloc_workqueue("riodisc", WQ_PERCPU, 0); if (!rio_wq) { pr_err("RIO: unable allocate rio_wq\n"); goto no_disc; --=20 2.53.0 From nobody Sat Jun 13 20:59:22 2026 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 C8EAC47277D for ; Tue, 5 May 2026 12:41:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984893; cv=none; b=pcYTcokUuuo6w3Ryf8N2+vTj4FFuqn+x4hGZixKsBSmiS7c84M4P3qCaM4YPVovC3D0bvcS2lzPmNNXC6qOjsFS8Fy7UVewtBirUDUfvRNV0A+nbZOtb3bJ/BjfOhndy+efOa/lYEoO/LDeR3hZJ7F86iMaVBBqTIgqjzTLxT+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984893; c=relaxed/simple; bh=2XMRin9KZ0FFDggX4gfZ8jIUgro59wTGZiHZpwjyzTc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pBs21Y3jvzGkXLP8jkqFZS+WRHKxCmIOct3xvoqOYi7zJ+VQTRcOA+RPeVgkuw40ZpGhYJnMtmTPZ4wYMq5dVNQH+RkMt/ItakBxwOzv3eb04jAO6DFz2kQJlCVbYfaWGWyNHa+rI2SCerXU4hWBKDLYyetyDp/T2GlRtYDsA+c= 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=H5PeTu/k; arc=none smtp.client-ip=209.85.128.45 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="H5PeTu/k" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4852a9c6309so42321585e9.0 for ; Tue, 05 May 2026 05:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777984890; x=1778589690; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=loObEgu4H16loNFMw1eIYoIS8weO0c9lNOQ3PDJ++IU=; b=H5PeTu/k9kCBoLMYOPVOSRBhKA3pFQXwJndbcKQ3nGGEbr+sI13QF/Wai1uyw0OKAu +NCidtlT3xuK3/UeEMxwOLebN3FUfLEV1Zw6hESxU1aPstyWk31TmNOG9F8EXlsC+ZHS jAZOzEiVe0NLSuDQ61qP7lEe3etZ/EPJBElv15KofQic9XRpkKU/w65yTxrWiuBat+lK BN2xRARVa82WetdOeLc0nidKgcPSRVeXvcFnamEpMQpgpDgJY4skaVzFm0zHuqf2cr3I b2xEB+A7RLcuGmJzxRdc+k3C6H/JVwAE9bofFnW7j+Tedkm4RNxlXsaAS40LGqz8J2+1 5thQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984890; x=1778589690; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=loObEgu4H16loNFMw1eIYoIS8weO0c9lNOQ3PDJ++IU=; b=rrPOSSMYZk0TgXD6PA1+2laRLnWT2nlDOwNDobcLgt1DRiMz3QTk3SvnWmtt23jiAg 8hH5ixl6DZLFCL5aaTN8Ll+KoJ8nlyBAc/iuLufVioVYnDe//1XCHJ+1/RthE1PmLo0o musHosDq6Fn5yeFtruVVX8sNATRqlktCKVvLW9EsBXmPIrBZ3AN/JflPSAbM6ii2Oo7U zRKaJ9YMA8S57hZz52PScuysjlzvMqaLRNW9Vs6mnPcQWXLAb4kBa1PAiePo46W1rVq2 wwkRVflPZ+fnrnwbIvYUtSacNhQTgnr0OqgbG7N4COJxA/6gEb/ZoWTY2/S+XKH5+FG5 xoeA== X-Gm-Message-State: AOJu0Yy9HmvxfNz/ZE17L1yop7zGDv6f+jJzivYgoUAIhsZaW6gqXOU1 fjZlWOiuLIVKa9Bk2j+VXYzxYBEIBER/oRIKN6ATnXCuG+S1K/3VAemkSzxQWUfKO2OI37pLizX sRF30tWA= X-Gm-Gg: AeBDiev3bvPEXKOqo+B+ohlWrRyGbYdBy9c4++xSPAjYfQi8fbL+GQ/22L7t/AigWdT NF9Rj9qgK6Hh6OFfVwMv1iwttvn0wnrmEcFYEEDYYAwqZxzoB3QvbApwCtwEpXWbsJbg2YLYkmm emiNeGMlPjmkQ3i8Q8yd8kNxv8uDdyMl+ZHk8I+2OXFGDIXqT11g+xOGGhHnK6XIocnjWkaQxUi gntpzCv0DJ1gy8ZguoTaPMjABrvIocXaLXSvncGqZiZXL8+F9pAL8EerMDLPtS6LXKs51C1DO3G E8HDsa8aSjIbweAM55DLaiVD+jCGPeA9+OAFqaMlVdFXzRcRCrHgUxLCNCInCQ/XvgdtPuT1Cww 8SN24M8p4QJj0c7E5fVjK7nEOFLtcaoDCScYvMQhXtHpUOpRzwNqOnurSnO2tK75XsgCw2zx9Jm VXXCkqJFmhWEt6vyeBcQBbmMu6gGvfSpHfywrt X-Received: by 2002:a05:600c:a401:b0:488:b241:2c5f with SMTP id 5b1f17b1804b1-48d18ce9332mr38064115e9.26.1777984889861; Tue, 05 May 2026 05:41:29 -0700 (PDT) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a820c865esm388442955e9.5.2026.05.05.05.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:41:29 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Luis Chamberlain Subject: [PATCH 6/6] umh: replace use of system_unbound_wq with system_dfl_wq Date: Tue, 5 May 2026 14:41:02 +0200 Message-ID: <20260505124113.214297-7-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260505124113.214297-1-marco.crivellari@suse.com> References: <20260505124113.214297-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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch continues the effort to refactor workqueue APIs, which has begun with the changes introducing new workqueues and a new alloc_workqueue flag: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") The point of the refactoring is to eventually alter the default behavior of workqueues to become unbound by default so that their workload placement is optimized by the scheduler. Before that to happen, workqueue users must be converted to the better named new workqueues with no intended behaviour changes: system_wq -> system_percpu_wq system_unbound_wq -> system_dfl_wq This way the old obsolete workqueues (system_wq, system_unbound_wq) can be removed in the future. Cc: Luis Chamberlain Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- kernel/umh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/umh.c b/kernel/umh.c index cffda97d961c..48117c569e1a 100644 --- a/kernel/umh.c +++ b/kernel/umh.c @@ -430,7 +430,7 @@ int call_usermodehelper_exec(struct subprocess_info *su= b_info, int wait) sub_info->complete =3D (wait =3D=3D UMH_NO_WAIT) ? NULL : &done; sub_info->wait =3D wait; =20 - queue_work(system_unbound_wq, &sub_info->work); + queue_work(system_dfl_wq, &sub_info->work); if (wait =3D=3D UMH_NO_WAIT) /* task has freed sub_info */ goto unlock; =20 --=20 2.53.0