From: Lai Jiangshan Date: Fri, 8 Mar 2024 09:42:50 +0000 (+0800) Subject: workqueue: Use INIT_WORK_ONSTACK in workqueue_softirq_dead() X-Git-Tag: v6.10-rc1~137^2^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7cc3be6fdb57d98fc399a856fc3b05cce1ca754;p=thirdparty%2Fkernel%2Flinux.git workqueue: Use INIT_WORK_ONSTACK in workqueue_softirq_dead() dead_work is a stack variable. Signed-off-by: Lai Jiangshan Signed-off-by: Tejun Heo --- diff --git a/kernel/workqueue.c b/kernel/workqueue.c index c0cc8b209d5cf..45d2aae73c960 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -3651,7 +3651,7 @@ void workqueue_softirq_dead(unsigned int cpu) if (!need_more_worker(pool)) continue; - INIT_WORK(&dead_work.work, drain_dead_softirq_workfn); + INIT_WORK_ONSTACK(&dead_work.work, drain_dead_softirq_workfn); dead_work.pool = pool; init_completion(&dead_work.done);