[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240408084404.31991-1-qiang.zhang1211@gmail.com>
Date: Mon, 8 Apr 2024 16:44:04 +0800
From: Zqiang <qiang.zhang1211@...il.com>
To: tj@...nel.org,
jiangshanlai@...il.com
Cc: qiang.zhang1211@...il.com,
linux-kernel@...r.kernel.org
Subject: [PATCH] workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead()
This commit add missed destroy_work_on_stack() operations for
dead_work.work.
Signed-off-by: Zqiang <qiang.zhang1211@...il.com>
---
kernel/workqueue.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index db004d2180e8..1edb0b06ae7c 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3661,6 +3661,7 @@ void workqueue_softirq_dead(unsigned int cpu)
queue_work(system_bh_wq, &dead_work.work);
wait_for_completion(&dead_work.done);
+ destroy_work_on_stack(&dead_work.work);
}
}
--
2.17.1
Powered by blists - more mailing lists