dead_work is a stack variable.
Showing the changes to kernel/workqueue.c (1 of 1 file). Show all
Unified · Split
| @@ -3651,7 +3651,7 @@ void workqueue_softirq_dead(unsigned int cpu) · 3650 unmodified lines | ||
| 3651 | 3651 | if (!need_more_worker(pool)) |
| 3652 | 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 | 3655 | dead_work.pool = pool; |
| 3656 | 3656 | init_completion(&dead_work.done); |
| 3657 | 3657 | |