History

workqueue: Use INIT_WORK_ONSTACK in workqueue_softirq_dead()

dead_work is a stack variable.

Lai Jiangshan committed 2 years ago

Commit e7cc3be1 parent 134874e1 file · +1 −1Browse files

Showing the changes to kernel/workqueue.c (1 of 1 file). Show all

Unified · Split

kernel/workqueue.c+1−1
@@ -3651,7 +3651,7 @@ void workqueue_softirq_dead(unsigned int cpu) · 3650 unmodified lines
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