From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.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 CDEA9481FAF for ; Fri, 15 May 2026 13:51:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778853116; cv=none; b=VXDrc8CXp46OvfaNtFP2xLDYewpRl+lSQn+RIyT0mqoa8xJEjg9//K/X2fS2zO7HT5rPR1Ewl7Nugji3E3y0VGOWvbMyVWjeVAePwJqMkpaB+Fc9t1JKmBARG/ORbokqFoPO3Fq2tk5WSnhOJTv8Qj5MRvc7XxvqwvhtpnJKpwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778853116; c=relaxed/simple; bh=bQwIl/CC7a2u7dBKqkiDMG3yTlhE6vWTrxK3I/e5Zes=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Wm/PfBPxL/Oul3wT8BZ1UyS1T1l9NhOue4xfKTe+fYzqbIqBAF6TeuELkNHMP7YgFFOriztiHaYqM3VWELit0fp2ac/+fOrPx1PHFXLf6XK4Mc9LdGS/xeWZC8tNJJBlTUxs+Gk0pLkMTyFC+F7IGn+Y+dkHfsb0w63FEowjNl4= 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=YNqYG62p; arc=none smtp.client-ip=209.85.221.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="YNqYG62p" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-43d77f6092eso5754213f8f.2 for ; Fri, 15 May 2026 06:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778853113; x=1779457913; 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=+xZrGgRDaGVqySYoubClm2QP08yGTEdoXS4C6fMI9nE=; b=YNqYG62pwAPg1wCKdQKu4sHdL6avJLzOXyDjHvQQxUX7u7e/xgo2ZDcNDAZeD5AmPj vF0tjzHj7aT5eWiZQRL1eWk4CwUoZQIzHj5hacYTUIBvpXA/5BvaDA4Vijkbxum20qqT YXtD/neG5ILxHKZLEFz/Zeqou/ztoD86niwSsDWWejlc9ho3mfxUahrz0HJiV08storx pdFaebv1B45e0+1k1WnpLJcvDqM+9bc85atB5dQwPBHOZ5V/do/Pg/Z4QUcp/JEpZB+E MDhpVJ2i6Je1p8KTkuDTUFslioSoG59tAJvyrl1O7CuLJNke3wfZgKadwJh3TpY6p/fn Q03w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778853113; x=1779457913; 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=+xZrGgRDaGVqySYoubClm2QP08yGTEdoXS4C6fMI9nE=; b=GbWlwvFmSNtEwRYOV0gHyBTZXvW35r+IfcxheXL3FIrYlDWWYvUYmS4yqUdaEHPUTI h61xOJBklIwHu/aKTOG4AY9DBteO/hOSnmFIXBSkZOUZWXLezGlB5OGKXWH7VIIjPoWP oHi8NjEl2nLVouPsh3LjRThR64wkQjRM9mizT8R1enmlLMDFbPZz9Y+sLuQdZdJ13GHo 1xq187358y/2hQRGTXHT/2N94x5dnAZeD3MG/Et3tFH8uXamt3dEfNq23oA6N7QI0hCT eDgaJrdaCq2oWAhv9RHY7BKEKnXuqcJ1s2G95vvw2NvX2DlEG+sOi2PXJv0+gN6qA4wf 6z1Q== X-Gm-Message-State: AOJu0YzUIVyUAS2qLa4wMkq5NpjIFnXA9QKvXm13qEJ29rwFXpOidMJD HB4xok3TMCgNJ3Tq2oJDskP4HLF7fdT16UyEqw+V65aqYnQM7FUhLBFDV2vBmZV9n3ALL1YD46e HU1Kgwx4= X-Gm-Gg: Acq92OEs5Qk6qfNfzZKXc0wpi5p8AQlcQehCXF3Gy24pcn7Itr6AFUUWDy/6Xv9BEuH TM89/767tBi7V7x956x2t66kJJCvHx/vs0psbzEiCMLa4YmXITvhyoWDxNvPfkQ9VmA7IxpyXWF egSgZy2zemHk2G0Lb7tTv4zG7PijNN3BeJvXT5Ym4e1PTudQgTjVHvCFeGx4cCM32Zv/WaAslDV pfXDuQvEvScOsFf35JTMi3GAV6NTzkfLYMsBUDQZUqDHNizoqXwJPvE42rlIQKJAa94xCDrYTUR NKQFK0Bnwk891739plo+o8rrfFZRNGjD+C5HWIWoy8VtYM/yrDzpBIvyLW3vnbJGPKMbhIYmVzm x9W3BpUUCx5rt4alr/x5t9Q9+FPyQbe3FeNvap6NvtAruttWo1QQI4DNrc19s+10/MGxL/XmJSU LgJdPdmFiqWsAuKPvcXzcP++Q2h23thubHEHzcJMFs+qt+KXSKcei7rHts5Q== X-Received: by 2002:a05:600c:3104:b0:488:ab1d:dcc5 with SMTP id 5b1f17b1804b1-48fe651b57fmr53453825e9.27.1778853112877; Fri, 15 May 2026 06:51:52 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fdafc6741sm79592675e9.2.2026.05.15.06.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 06:51:52 -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 , Florian Westphal , Ido Schimmel , Julian Anastasov , Pablo Neira Ayuso , Phil Sutter , Simon Horman Subject: [PATCH v2 net-next 0/2] net: Replace system_unbound_wq with system_dfl_wq Date: Fri, 15 May 2026 15:51:35 +0200 Message-ID: <20260515135143.259669-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Let's consider a nohz_full system with isolated CPUs: wq_unbound_cpumask is set to the housekeeping CPUs, for !WQ_UNBOUND the local CPU is selected. This leads to different scenarios if a work item is scheduled on an isolated CPU where "delay" value is 0 or greater then 0: schedule_delayed_work(, 0); This will be handled by __queue_work() that will queue the work item on the current local (isolated) CPU, while: schedule_delayed_work(, 1); Will move the timer on an housekeeping CPU, and schedule the work there. Currently if a user enqueue 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. === Changes to the WQ API === The following, address the recent changes in the Workqueue API: - commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") - commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") The old workqueues will be removed in a future release cycle. === Introduced Changes by this series === 1) [P 1] Replace uses of system_unbound_wq with system_dfl_wq 2) [P 2] Replace uses of system_unbound_wq with system_dfl_long_wq No behavioral changes are introduced. Thanks! Marco Crivellari (2): ipmr: Replace use of system_unbound_wq with system_dfl_wq ipvs: Replace use of system_unbound_wq with system_dfl_long_wq net/ipv4/ipmr_base.c | 2 +- net/netfilter/ipvs/ip_vs_conn.c | 4 ++-- net/netfilter/ipvs/ip_vs_ctl.c | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) -- 2.54.0