linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead()
@ 2024-04-08  8:44 Zqiang
  2024-04-08 18:04 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Zqiang @ 2024-04-08  8:44 UTC (permalink / raw)
  To: tj, jiangshanlai; +Cc: qiang.zhang1211, linux-kernel

This commit add missed destroy_work_on_stack() operations for
dead_work.work.

Signed-off-by: Zqiang <qiang.zhang1211@gmail.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead()
  2024-04-08  8:44 [PATCH] workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead() Zqiang
@ 2024-04-08 18:04 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2024-04-08 18:04 UTC (permalink / raw)
  To: Zqiang; +Cc: jiangshanlai, linux-kernel

On Mon, Apr 08, 2024 at 04:44:04PM +0800, Zqiang wrote:
> This commit add missed destroy_work_on_stack() operations for
> dead_work.work.
> 
> Signed-off-by: Zqiang <qiang.zhang1211@gmail.com>

Applied to wq/for-6.10.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-08 18:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-08  8:44 [PATCH] workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead() Zqiang
2024-04-08 18:04 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).