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>
This commit is contained in:
parent
134874e2ee
commit
e7cc3be6fd
|
|
@ -3651,7 +3651,7 @@ void workqueue_softirq_dead(unsigned int cpu)
|
|||
if (!need_more_worker(pool))
|
||||
continue;
|
||||
|
||||
INIT_WORK(&dead_work.work, drain_dead_softirq_workfn);
|
||||
INIT_WORK_ONSTACK(&dead_work.work, drain_dead_softirq_workfn);
|
||||
dead_work.pool = pool;
|
||||
init_completion(&dead_work.done);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue