Commit e7cc3be6 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Tejun Heo

workqueue: Use INIT_WORK_ONSTACK in workqueue_softirq_dead()

dead_work is a stack variable.
Signed-off-by: default avatarLai Jiangshan <jiangshan.ljs@antgroup.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 134874e2
...@@ -3651,7 +3651,7 @@ void workqueue_softirq_dead(unsigned int cpu) ...@@ -3651,7 +3651,7 @@ void workqueue_softirq_dead(unsigned int cpu)
if (!need_more_worker(pool)) if (!need_more_worker(pool))
continue; continue;
INIT_WORK(&dead_work.work, drain_dead_softirq_workfn); INIT_WORK_ONSTACK(&dead_work.work, drain_dead_softirq_workfn);
dead_work.pool = pool; dead_work.pool = pool;
init_completion(&dead_work.done); init_completion(&dead_work.done);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment