All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] s390/hiperdispatch: use system_dfl_wq to reschedule hd_capacity_work
@ 2026-09-11  9:13 Euan Bourke
  2026-09-11  9:20 ` sashiko-bot
  2026-09-11  9:47 ` Mete Durlu
  0 siblings, 2 replies; 3+ messages in thread
From: Euan Bourke @ 2026-09-11  9:13 UTC (permalink / raw)
  To: hca, gor, agordeev, borntraeger, svens; +Cc: meted, linux-s390, euan

In hd_enable_hiperdispatch(), hd_capacity_work is scheduled on
system_dfl_wq, however the work function reschedules itself with
schedule_delayed_work(), which uses system_percpu_wq.

Hiperdispatch does not benefit from using the percpu workqueue. Use
queue_delayed_work() with system_dfl_wq for consistency.

Changing the workqueue from system_percpu_wq to system_dfl_wq causes no
functional changes.

Signed-off-by: Euan Bourke <euan@linux.ibm.com>
---
v2:
- use queue_delayed_work() instead of mod_delayed_work()

 arch/s390/kernel/hiperdispatch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/s390/kernel/hiperdispatch.c b/arch/s390/kernel/hiperdispatch.c
index 217206522266..8494823559b1 100644
--- a/arch/s390/kernel/hiperdispatch.c
+++ b/arch/s390/kernel/hiperdispatch.c
@@ -265,7 +265,7 @@ static void hd_capacity_work_fn(struct work_struct *work)
 	}
 	trace_s390_hd_work_fn(steal_percentage, hd_entitled_cores, hd_high_capacity_cores);
 	mutex_unlock(&smp_cpu_state_mutex);
-	schedule_delayed_work(&hd_capacity_work, HD_DELAY_INTERVAL);
+	queue_delayed_work(system_dfl_wq, &hd_capacity_work, HD_DELAY_INTERVAL);
 }
 
 static int hiperdispatch_ctl_handler(const struct ctl_table *ctl, int write,
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-11  9:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-11  9:13 [PATCH v2] s390/hiperdispatch: use system_dfl_wq to reschedule hd_capacity_work Euan Bourke
2026-09-11  9:20 ` sashiko-bot
2026-09-11  9:47 ` Mete Durlu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.