lkml.org 
[lkml]   [2024]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead()
Date
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

\
 
 \ /
  Last update: 2024-05-27 16:28    [W:0.143 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site