From mboxrd@z Thu Jan 1 00:00:00 1970 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: 8bit 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 *sub_info, int wait) sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; sub_info->wait = wait; - queue_work(system_unbound_wq, &sub_info->work); + queue_work(system_dfl_wq, &sub_info->work); if (wait == UMH_NO_WAIT) /* task has freed sub_info */ goto unlock; -- 2.53.0