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
3651 if (!need_more_worker(pool))3651 if (!need_more_worker(pool))
3652 continue;3652 continue;
3653 3653
3654 INIT_WORK(&dead_work.work, drain_dead_softirq_workfn);3654 INIT_WORK_ONSTACK(&dead_work.work, drain_dead_softirq_workfn);
3655 dead_work.pool = pool;3655 dead_work.pool = pool;
3656 init_completion(&dead_work.done);3656 init_completion(&dead_work.done);
3657 3657