From nobody Sat Jun 13 02:04:40 2026 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 CB26F3F54B7 for ; Mon, 11 May 2026 13:48:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778507292; cv=none; b=U6QXRqUayeXoFhPwdFdOMo6nR/NWb3uatzLSMrDiAuZ+bloZLPMiLYWSxWdH0XW4ZDbnOYpZSDv4CHbSSGHUSQrdyRhtwud9pGh1AT7qKSSC8XQj7cyJlbOBhB6T6fCr9jh3PSqHEnJ1Y1Pu6yxXBQ8smKEFlL7Cal1K2hM0LoY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778507292; c=relaxed/simple; bh=mwbCUn08CWMwL0woqy177gkj8PZXx4Uk/KthAashRy8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MZaGPbPECbFrTUzrIBX+mgy5IGLqZWFR3QKEJPZGVwl5I+bO0ivOep8lavV+WgtmwdoNnVXGVF7ObCx8WRgMvFvxG49OVv8cwF7Od3QZXJpBK6LFOb7S9yVPiKTpPnxlg+JX3W1euXTHZ1b+KRFkmSEhRQ3yz8FKHWXefIQR97Q= 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=dw+kQApz; arc=none smtp.client-ip=209.85.128.48 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="dw+kQApz" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4891c0620bcso30573685e9.1 for ; Mon, 11 May 2026 06:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778507288; x=1779112088; 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=OmJGUnALjoD0KZePhh+NZjTK3Hla1q67wmp2q20EKW8=; b=dw+kQApz6Plu6e2KvAy73Con9p5oCpwQnrP4pQ13yHwpy1T/8KAlt0meTVaZ/l9XsU PmhHfP0gRnRuCJiW2a3a4Z3vXw+pP0Wi4VU/kB6RICkauy1CewU3UEk2Z7KGV0Vqqry+ 7FwcwYCzydjUgZrd5wiIJgK8m2I+tVi/wTsIxRhbcUCwjLG6rlp+ZNfc/yQOHJyV74WG E17FTxkAnw4pnV3/+ZB7vFlWNXj8/1uDmrlUZGi2TLkatPxj7BjWm8GUUBs2Gd2TDOAl P41o/bAfUm+JERGbvA9AtbXFTg2Z1c04OjiB0C1spM0SruvoOeZXCQYbC5zEGOw5DmR4 TXDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778507288; x=1779112088; 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=OmJGUnALjoD0KZePhh+NZjTK3Hla1q67wmp2q20EKW8=; b=SqcvR6YDBgvFUwWZhiAsUPtXzbYibPVYntXoaWJXrF3LePsohyzSdx/cJzLlan5gXA R0ecwUBzx9gm9qXlKs6wTPvfjtIv8X6njDL0Y6AN+Ouy2ghq2vB1QcThwv4eQRbyYPx3 fzGBtTtB6UVEzPIsmL8TLSQqoyqTeg7gk6e/FMUHC0sGoei2l7J2McSAt3+/VUTMlsrh tostq/XwwvRQKezvc3mk6mC+x7sWTbwco2mPiM5V7w4ikQQ8Pr8O3NHdY4a/wBBnIlEp meQOu/P9j+60lsc9daN/5mK7+fXA7IjvDzFVk/l26noKV8GCnqBYnnfPfClZqWsycJZt Bzkw== X-Gm-Message-State: AOJu0YwJBjJt+5XcDUyOQeElVwaUuBoc7EvjpLZ9MdiE55LRA2Tan/N3 kIvoM6wSTQ0PqBpNJxWbP826Bmj44fyJkIcUOpkLXoiyfhugpf2NSrEhv4vefP7kTVYpVXuv5iI 60Ta39Uw= X-Gm-Gg: Acq92OExpluje1A5qILrbTFdYq8y3h3IaTRUhHSUhVgOnECKF7Ap6OjdYOiGrqx61Ij hafaYzdMrGBmFDjTUaWA24l/SbRvj+I1yqZDtCo3MBkB3tz8JHkc0ne77NzexlNpqrd2bYaVgUv p47e2zR27zvd/r7oyxMTNM3pgpGvH4W1/KwgjJgGTAoDiQLF4PwsrcqwE8jYoQUcBMNrH9NXBY9 ImSLrzXP8RzZfgzaZ77fWQwZGRwg26saGEfaTu9y+R2/4sPYnFqUxi9mq2R13F+aHurohlVJsAa ZuDyxGwKZEGSFN1L9bqyK78fSssMA9BNkmwO+08D2BNm4kbFrZbluREGLx+r4YowYw3P28HGSeM TQsXUSJkImz3+AKwQ+Jv7JeQ9vsu4eCZiRk68NLbQXPL7sA35T2oVkV4gDD/mfB4ME88dnNL8DA Vf5w65u0eqf3I0oaJi03/nf23uRY502iPFSxz6GeJl8HUPKLg= X-Received: by 2002:a05:600c:4703:b0:488:936a:6220 with SMTP id 5b1f17b1804b1-48e676ac055mr227158915e9.21.1778507288202; Mon, 11 May 2026 06:48:08 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e701e957asm188062665e9.6.2026.05.11.06.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2026 06:48:07 -0700 (PDT) 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 , Simon Horman , Eric Dumazet , "David S . Miller" , Jakub Kicinski , Paolo Abeni , David Ahern , Ido Schimmel , Simon Horman Subject: [PATCH net-next 1/2] ipmr: Replace use of system_unbound_wq with system_dfl_wq Date: Mon, 11 May 2026 15:47:36 +0200 Message-ID: <20260511134744.277032-2-marco.crivellari@suse.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260511134744.277032-1-marco.crivellari@suse.com> References: <20260511134744.277032-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: David Ahern Cc: Ido Schimmel Cc: Simon Horman Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- net/ipv4/ipmr_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/ipmr_base.c b/net/ipv4/ipmr_base.c index 3930d612c3de..867b24beded1 100644 --- a/net/ipv4/ipmr_base.c +++ b/net/ipv4/ipmr_base.c @@ -39,7 +39,7 @@ static void __mr_free_table(struct work_struct *work) =20 void mr_table_free(struct mr_table *mrt) { - queue_rcu_work(system_unbound_wq, &mrt->work); + queue_rcu_work(system_dfl_wq, &mrt->work); } =20 struct mr_table * --=20 2.54.0 From nobody Sat Jun 13 02:04:40 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 CCFDA3F7886 for ; Mon, 11 May 2026 13:48:11 +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=1778507293; cv=none; b=Nd/rldwsNVCiaGhZMYEuH9jWLq44XVQXJI4/AThR4xcycIWwsXiTluHCMvjyh0A0/DkZizqXmKCT6E4LWOAiyaR1MNM4X8p8wHFn1LZcz+G+29ads0cFaLi8M5gs2aWvr/zHZd+K5Adkq/4cFWXOD4L1Y84oa/pQp2oSsacwmho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778507293; c=relaxed/simple; bh=5lTw8AW4wHd4EwAFkjJzid9ifnmy2d8f+Nyohbx8bF8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JAsLnIDbe9JPMB/S/QriQUbDXwQ1kqN6arazVIRPETxspEl39w9Dr0Quoh7W1YeJbidU5aWKu5jPZQXdw57/0j2P7OGGRpajSzx7gHmKv5Jp6iZOlT304UFxhGIv93CDOgjCWA8rFIsh0YtvMfczeZmeDiLmYoTalOgETDPpeS8= 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=fdvpZ34P; 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="fdvpZ34P" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4891f625344so41839045e9.0 for ; Mon, 11 May 2026 06:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778507290; x=1779112090; 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=5jEKdOT9KNT9VkfLURxJrQMx5JuEqo+lpwOnRqNvfvY=; b=fdvpZ34PGkii73OrZ3bKD/2ykJ93QnGL42dlkoCxkXvZPfHQ+BxaVd1wK+uuA1S2KC Y4rYShGIkkbz0UGs2T9fcVtKQYeoAu+JzCxdLsFoszsLi2mXeVMuCzCbqCj5kzKenXvo nD7bPdh7Qwnl08pcWrrKIqXCXrEgTAyh6wEGG6f1G7b2MXMoRwGEGEe3zBHGRvhi2Zke nAHhggyHw58OYe5xwrMxrqKgPXECZASfhLk/23/ygeNy1IqIsb9f78qjthT5RoLVOwWT fiad8cf/Oj0ZdfKB6+G7qQtwRijuU7ZblE1Xr0VzkUWNlniao1JxMhaqqqVk3hQGjEAt vf4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778507290; x=1779112090; 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=5jEKdOT9KNT9VkfLURxJrQMx5JuEqo+lpwOnRqNvfvY=; b=FnCllCBTlVhe/HBw1o1QXXv5fvs7vmP0z+1rYPIbOEaHSX5upKyk1o9L0vEATQQRfn 0qm/iUACyiH8503UXWMQjMHoNcxhPUBw00CkmbrA3amSVrlw40HZObOsPwsIYskmAJ9P Qe7W+B8stG/7QBHX9+x7hdieqNymDm6DVc2APZA3DzlBgGaxaBpm56LaGxLE9uAsqvyF zlvN42otAvqUL0ifFbOMTUa+4n0jWBdJzjbQpcE3GnRAOy2ostP7Z1I9YpFeMh7HEf/W MjZkANhUkP6BM8/avmgMfEevrjxx8IJB/Mt8R7kwXXVoElkvu8ioiBiJhAGKVPVbp0Vv 6ICw== X-Gm-Message-State: AOJu0YyqPn2o3sze5w9c9ZAiBZ4+PjomF5MkMkI2fHuRW/LrFwBCQ/dM C4tcT9xpIIGs/yOykOwlx5k1j58X3lndMLD8+tHynUGlT65OlzZA1k/QGqIQl/B1yG+WOvQTDGo aEDgkwzA= X-Gm-Gg: Acq92OFLr71r/HBtGWLpPzF603Ho0Y3UT/Ql6tYAl4vySqSBJQfv/NNy8EaNbq8z11T pTDfyrkQcwENizYhKhoxWVe/cC4dSQ5PCc5TQwg3DSfHS81qqIocVGfopM0oD4Vhnf74IlHy9Lj 854yyjxGRY71ep96V0UEkaIBSLKUQxHKnRr+G3TjgORZ93KtW8uejbl1novw8Rg+wsyg4OLD/i4 cyr57kRcMrevoPSiXlget1sJviriwt8pJSLwr6v6LpNIAhtwSGF11uzR7KEDUL2clpps/dmw8Km CXHi9JJtXvt4+bslywuWUhd9BWWfkNTBqEWCg0vtl+Miz3C0CfoGXtROR/12ohGR1KKjRkdiKoP IQmXvpIdZozc96JIOuuZZE1tJ8dBnauSdn+Oak60jWEpez/gSVmv3NhwPDzFTyWTeNjeNBC0wSB XIzShs/60A8DGmdfEhqy7BOO0y3YhLzL7XxsvXE4txDKjibdc= X-Received: by 2002:a05:600c:3b8f:b0:48a:79d8:a8d6 with SMTP id 5b1f17b1804b1-48e642deefamr241378475e9.7.1778507289999; Mon, 11 May 2026 06:48:09 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e701e957asm188062665e9.6.2026.05.11.06.48.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2026 06:48:09 -0700 (PDT) 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 , Simon Horman , Eric Dumazet , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Julian Anastasov , Pablo Neira Ayuso , Florian Westphal , Phil Sutter , lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org Subject: [PATCH net-next 2/2] ipvs: Replace use of system_unbound_wq with system_dfl_wq Date: Mon, 11 May 2026 15:47:37 +0200 Message-ID: <20260511134744.277032-3-marco.crivellari@suse.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260511134744.277032-1-marco.crivellari@suse.com> References: <20260511134744.277032-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: Julian Anastasov Cc: Pablo Neira Ayuso Cc: Florian Westphal Cc: Phil Sutter Cc: lvs-devel@vger.kernel.org Cc: netfilter-devel@vger.kernel.org Cc: coreteam@netfilter.org Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- net/netfilter/ipvs/ip_vs_conn.c | 4 ++-- net/netfilter/ipvs/ip_vs_ctl.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_con= n.c index 9ea6b4fa78bf..2625c0379556 100644 --- a/net/netfilter/ipvs/ip_vs_conn.c +++ b/net/netfilter/ipvs/ip_vs_conn.c @@ -285,7 +285,7 @@ static inline int ip_vs_conn_hash(struct ip_vs_conn *cp) /* Schedule resizing if load increases */ if (atomic_read(&ipvs->conn_count) > t->u_thresh && !test_and_set_bit(IP_VS_WORK_CONN_RESIZE, &ipvs->work_flags)) - mod_delayed_work(system_unbound_wq, &ipvs->conn_resize_work, 0); + mod_delayed_work(system_dfl_wq, &ipvs->conn_resize_work, 0); =20 return ret; } @@ -916,7 +916,7 @@ static void conn_resize_work_handler(struct work_struct= *work) =20 out: /* Monitor if we need to shrink table */ - queue_delayed_work(system_unbound_wq, &ipvs->conn_resize_work, + queue_delayed_work(system_dfl_wq, &ipvs->conn_resize_work, more_work ? 1 : 2 * HZ); } =20 diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index c7c7f6a7a9f6..f8fe1c8981d8 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c @@ -800,7 +800,7 @@ static void svc_resize_work_handler(struct work_struct = *work) if (!READ_ONCE(ipvs->enable) || !more_work || test_bit(IP_VS_WORK_SVC_NORESIZE, &ipvs->work_flags)) return; - queue_delayed_work(system_unbound_wq, &ipvs->svc_resize_work, 1); + queue_delayed_work(system_dfl_wq, &ipvs->svc_resize_work, 1); } =20 static inline void @@ -1833,7 +1833,7 @@ ip_vs_add_service(struct netns_ipvs *ipvs, struct ip_= vs_service_user_kern *u, /* Schedule resize work */ if (t && ip_vs_get_num_services(ipvs) > t->u_thresh && !test_and_set_bit(IP_VS_WORK_SVC_RESIZE, &ipvs->work_flags)) - queue_delayed_work(system_unbound_wq, &ipvs->svc_resize_work, + queue_delayed_work(system_dfl_wq, &ipvs->svc_resize_work, 1); =20 *svc_p =3D svc; @@ -2078,7 +2078,7 @@ static int ip_vs_del_service(struct ip_vs_service *sv= c) } else if (ns <=3D t->l_thresh && !test_and_set_bit(IP_VS_WORK_SVC_RESIZE, &ipvs->work_flags)) { - queue_delayed_work(system_unbound_wq, &ipvs->svc_resize_work, + queue_delayed_work(system_dfl_wq, &ipvs->svc_resize_work, 1); } return 0; @@ -2511,7 +2511,7 @@ static int ipvs_proc_conn_lfactor(const struct ctl_ta= ble *table, int write, } else { WRITE_ONCE(*valp, val); if (rcu_access_pointer(ipvs->conn_tab)) - mod_delayed_work(system_unbound_wq, + mod_delayed_work(system_dfl_wq, &ipvs->conn_resize_work, 0); } } @@ -2543,7 +2543,7 @@ static int ipvs_proc_svc_lfactor(const struct ctl_tab= le *table, int write, READ_ONCE(ipvs->enable) && !test_bit(IP_VS_WORK_SVC_NORESIZE, &ipvs->work_flags)) - mod_delayed_work(system_unbound_wq, + mod_delayed_work(system_dfl_wq, &ipvs->svc_resize_work, 0); mutex_unlock(&ipvs->service_mutex); } --=20 2.54.0