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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 134874e commit e7cc3be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)