summaryrefslogtreecommitdiff
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorZqiang <qiang.zhang1211@gmail.com>2024-04-08 16:44:04 +0800
committerTejun Heo <tj@kernel.org>2024-04-08 08:02:51 -1000
commit31103f40b1b5d4382446b4d5af37e61dce31f8d5 (patch)
tree15da5ec94a5f58fb1508927bb5a922e6fd183b88 /kernel/workqueue.c
parent8034b31464c53d6e182f65a293a87b50ddf6dd7e (diff)
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 <qiang.zhang1211@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index a8cbaede1e22..3c3154b40698 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);
}
}