Skip to content

Commit 31103f4

Browse files
Zqianghtejun
authored andcommitted
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 8034b31 commit 31103f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/workqueue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3661,6 +3661,7 @@ void workqueue_softirq_dead(unsigned int cpu)
36613661
queue_work(system_bh_wq, &dead_work.work);
36623662

36633663
wait_for_completion(&dead_work.done);
3664+
destroy_work_on_stack(&dead_work.work);
36643665
}
36653666
}
36663667

0 commit comments

Comments
 (0)