Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Lai Jiangshan and committed by
Tejun Heo
e7cc3be6 134874e2

+1 -1
+1 -1
kernel/workqueue.c
··· 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