From: Zqiang Date: Mon, 8 Apr 2024 08:44:04 +0000 (+0800) Subject: workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead() X-Git-Tag: v6.10-rc1~137^2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31103f40b1b5d4382446b4d5af37e61dce31f8d5;p=thirdparty%2Fkernel%2Flinux.git workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead() This commit add missed destroy_work_on_stack() operations for dead_work.work. Signed-off-by: Zqiang Signed-off-by: Tejun Heo --- diff --git a/kernel/workqueue.c b/kernel/workqueue.c index a8cbaede1e225..3c3154b406984 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -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); } }