From nobody Sun Feb 8 07:21:49 2026 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 4A18D32862D for ; Wed, 24 Dec 2025 16:13:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766592801; cv=none; b=KN2MpbH7S754vhfIuAzLYd6Sb3pl6vc23uC/P4+goBDbshETY3wTGYRifqHXaRF+jxoQcU7oUzk1ykcGSDCUe+U2uP3eOAacWj+L3BjmsjO1Ih7jFiwgLqBZuck5OET9531KHcnw+h9K4N8xc1FXYRSaRYPj2XOiTOQRdj8oxc0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766592801; c=relaxed/simple; bh=bC/PTVpuVYv2mytg0/NecLmwKjnM9UfG1OmM/aBboVg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qoIVz+LAO9cKQBtqsW/c20ke74gffWj+qufIerF0VeV2T/IxJfZqZqT8eoS2ycAzzCdwNS2V3VlWLSkNZjuuOzN0OHqef4JLYM54sImP63YEZZbMX9eSkYTuqn0KwvDFR0akuq2CxcYzePUlRAzdhAUBXc+R/b4aGb5tktq9obA= 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=V7OSHzKy; arc=none smtp.client-ip=209.85.221.42 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="V7OSHzKy" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-4327778df7fso136060f8f.3 for ; Wed, 24 Dec 2025 08:13:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1766592797; x=1767197597; 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=7Bseof+hoOH4xzCZNwOWaag03+RQvBwXo8IbhfTyqmI=; b=V7OSHzKyEiFZgnE1+vYeeioCQTedpQsB2UEutVkxtNRThygffnA8dwEAL4ZmQhx9K0 xu4+mC3zSvzxm8rAdDWqm8OurXbcObrkBl9SFAY925LusayF1ngqkeqGMQwg/FGLDHKU jOTI628mGlVHHaE3gYaOOchxB3paqfTAIt4mFc1UvWzMZVeWWM3EBwdzrTJc+995Xc6N pVWfj/FYToEDUpPs3MSBxZ3jCSGZIDC4xr7S0uGbXuJOOfGyChaLvWhLimw4WPNxoyuu loVD7QfltsqXaRXGvEfcyN8zdNeDPsOsK8bZsQ66VBDMzAUOo+owqQZsFK/GUQ+FvKK1 XO4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766592797; x=1767197597; 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=7Bseof+hoOH4xzCZNwOWaag03+RQvBwXo8IbhfTyqmI=; b=HQCAaSaR3Npjq4+iBbfb2imNwTeAwC8gAaElC6CNEbaK9NWYFXtVW2EGPFpQcKX6TX SuRxPU//urOV9+9J5YGecA4Le+kX39ucjdtLv7B/HkK2BUkoaz3WQwNBDD81eALhOdLQ zgaO2hnHqmaj18eeJr/1Mjyfo0esTcYvJU48YdpD/k5VPw+5dTt2CU8aKTAEPqbvuPzO A8B3fGDWY8t4doDHySCKNs9/8fJNunba308/ykGSZXdTeWQ5D8HAY7y9D4JIxSCeWxi8 4Oiio6z0YjLLVpTsZpzxKHpfnVVbfeqGDGO41jzVnc59jXmUBxGprkvSd+1MSVNHPJgS 3yuQ== X-Gm-Message-State: AOJu0YwG42LaCvYw/xN0pPBky7iG8yIeIEf8PDasX491ZhV+UdEUc1q9 w9Z7qJGtURm2wNtw05Dc/XOpho8GRxG8jbjv/blis/8wmkuffx/Duc6vghXz1c80saEgBT1kz4j 8UI3g X-Gm-Gg: AY/fxX57Ib60Lg9PUkNbtVaHHmecmIuc7y8sWIU/pkVZuZCP+89Z4jH8nHjI9XwaLTS 0BD0q5j0ivayf3RMbhKuQWExJJJ7XHdxkc+xUGsfDTSsFK1lxQoEPIV/k1tPCMEOa1gkm2842K6 y3FJz6ykcPu1dmk/vGgxY2A2TmGxBCKf1jiEKaO/vtamHiB1G/7G3+5cXsLFYMsytl6tlPoQMPw rX2fMC2978/X/C1T8jpOlUa5dTdgj1GLqFjVkumQNzqpQk0mRKtUVnQs4LiX2dubnPDMMsEm1VX iQknd8u4CDxBq7skS3+5Wv/pwYMboccOljYVNRBg4M+i0ttXVHuIICMW/+VR514i9c0JbNcXKlG N0qnKCwolOzBLjU+BcPa7WjIUfSueldIlfJvxqV6Vv/nRFSA12Yu2eLpM+H4d1eOWwQcXOtYL4L b2tnlWZZsNOlX6ejn5YWUl9mkD12WhvTR8kUc= X-Google-Smtp-Source: AGHT+IEKXx4Ie5d2HqEhtqmK3/FjqYPxsFgrlXW/f0jCfUFOA2Ko7lLY6qARshTHhBES/Zmq6wcOvA== X-Received: by 2002:a05:6000:220c:b0:430:f58d:40cf with SMTP id ffacd0b85a97d-4324e4c9692mr16952521f8f.16.1766592797329; Wed, 24 Dec 2025 08:13:17 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4324ea1b36fsm34909652f8f.5.2025.12.24.08.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Dec 2025 08:13:17 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, openipmi-developer@lists.sourceforge.net Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Corey Minyard Subject: [PATCH] ipmi: Replace use of system_wq with system_percpu_wq Date: Wed, 24 Dec 2025 17:13:01 +0100 Message-ID: <20251224161301.135382-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.52.0 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 after a careful review and conversion of each individ= ual case, 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. Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari Acked-by: Corey Minyard --- drivers/char/ipmi/ipmi_msghandler.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_m= sghandler.c index 3f48fc6ab596..ebdc8f683981 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -973,7 +973,7 @@ static int deliver_response(struct ipmi_smi *intf, stru= ct ipmi_recv_msg *msg) mutex_lock(&intf->user_msgs_mutex); list_add_tail(&msg->link, &intf->user_msgs); mutex_unlock(&intf->user_msgs_mutex); - queue_work(system_wq, &intf->smi_work); + queue_work(system_percpu_wq, &intf->smi_work); } =20 return rv; @@ -4935,7 +4935,7 @@ void ipmi_smi_msg_received(struct ipmi_smi *intf, if (run_to_completion) smi_work(&intf->smi_work); else - queue_work(system_wq, &intf->smi_work); + queue_work(system_percpu_wq, &intf->smi_work); } EXPORT_SYMBOL(ipmi_smi_msg_received); =20 @@ -4945,7 +4945,7 @@ void ipmi_smi_watchdog_pretimeout(struct ipmi_smi *in= tf) return; =20 atomic_set(&intf->watchdog_pretimeouts_to_deliver, 1); - queue_work(system_wq, &intf->smi_work); + queue_work(system_percpu_wq, &intf->smi_work); } EXPORT_SYMBOL(ipmi_smi_watchdog_pretimeout); =20 @@ -5115,7 +5115,7 @@ static bool ipmi_timeout_handler(struct ipmi_smi *int= f, flags); } =20 - queue_work(system_wq, &intf->smi_work); + queue_work(system_percpu_wq, &intf->smi_work); =20 return need_timer; } @@ -5171,7 +5171,7 @@ static void ipmi_timeout(struct timer_list *unused) if (atomic_read(&stop_operation)) return; =20 - queue_work(system_wq, &ipmi_timer_work); + queue_work(system_percpu_wq, &ipmi_timer_work); } =20 static void need_waiter(struct ipmi_smi *intf) --=20 2.52.0