Skip to contentSkip to conversation

workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead()

PATCH Applied Zqiang 2 participants 2 messages Apr 8, 2024 Workqueue

lore
Share & tools
lore

Zqiang

author
#0 lore raw

PATCH 1/1 workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead()

This commit add missed destroy_work_on_stack() operations for dead_work.work.

---
 kernel/workqueue.c | 1 +
 1 file changed, 1 insertion(+)
kernel/workqueue.c +1 -0
index db004d2180e8..1edb0b06ae7c 100644
@@ -3661,6 +3661,7 @@ void workqueue_softirq_dead(unsigned int cpu)
 			queue_work(system_bh_wq, &dead_work.work);
 
 		wait_for_completion(&dead_work.done);
+		destroy_work_on_stack(&dead_work.work);
 	}
 }
 
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Zqiang

This commit add missed destroy_work_on_stack() operations for dead_work.work.

Applied to wq/for-6.10.

Thanks.

Signature · 1 line
tejun