Skip to content

Commit e7cc3be

Browse files
Lai Jiangshanhtejun
authored andcommitted
workqueue: Use INIT_WORK_ONSTACK in workqueue_softirq_dead()
dead_work is a stack variable. Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 134874e commit e7cc3be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/workqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3651,7 +3651,7 @@ void workqueue_softirq_dead(unsigned int cpu)
36513651
if (!need_more_worker(pool))
36523652
continue;
36533653

3654-
INIT_WORK(&dead_work.work, drain_dead_softirq_workfn);
3654+
INIT_WORK_ONSTACK(&dead_work.work, drain_dead_softirq_workfn);
36553655
dead_work.pool = pool;
36563656
init_completion(&dead_work.done);
36573657

0 commit comments

Comments
 (0)