[PATCH] dma: swiotlb: Use system_percpu_wq for dynamic pool freeing
From: Kohei Enju
Date: Tue Nov 24 2026 - 19:39:57 EST
system_wq is deprecated, and queueing dynamic SWIOTLB pool teardown work
on it causes the following warning:
workqueue: work func swiotlb_dyn_free_work enqueued on deprecated workqueue. Use system_{percpu|dfl}_wq instead.
Use system_percpu_wq instead, which preserves the per-CPU workqueue
behavior of system_wq.
Fixes: e13d4d9a4915 ("dma: swiotlb: free dynamic pools from process context")
Signed-off-by: Kohei Enju <enju.kohei@xxxxxxxxxxx>
---
kernel/dma/swiotlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
index 786954bc5e6a..4060d9ad5b24 100644
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -926,7 +926,7 @@ static void swiotlb_dyn_free_work(struct work_struct *work)
static void swiotlb_schedule_dyn_free(struct io_tlb_pool *pool)
{
INIT_RCU_WORK(&pool->dyn_free, swiotlb_dyn_free_work);
- queue_rcu_work(system_wq, &pool->dyn_free);
+ queue_rcu_work(system_percpu_wq, &pool->dyn_free);
}
/**
---
base-commit: 8d7fe9885c62fc9a95bf55d9db244d9672a8aadc
change-id: 20261111-swiotlb-replace-system_wq-a995aa7759ea
Best regards,
--
Kohei Enju <enju.kohei@xxxxxxxxxxx>