diff options
author | Lai Jiangshan <jiangshan.ljs@antgroup.com> | 2024-03-08 10:42:50 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-03-25 19:40:46 +0100 |
commit | e7cc3be6fdb57d98fc399a856fc3b05cce1ca754 (patch) | |
tree | b841b6e0f7106f6137ac46ecd475a51957dc59d7 | |
parent | workqueue: Allow cancel_work_sync() and disable_work() from atomic contexts o... (diff) | |
download | linux-e7cc3be6fdb57d98fc399a856fc3b05cce1ca754.tar.xz linux-e7cc3be6fdb57d98fc399a856fc3b05cce1ca754.zip |
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>
-rw-r--r-- | kernel/workqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index c0cc8b209d5c..45d2aae73c96 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); |