* [PATCH linux-next] EDAC:wq:Remove the redundant 'flush_workqueue()' calls
@ 2022-08-01 2:16 cgel.zte
0 siblings, 0 replies; only message in thread
From: cgel.zte @ 2022-08-01 2:16 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-edac, ye xingchen, Zeal Robot
From: ye xingchen <ye.xingchen@zte.com.cn>
calls 'destroy_workqueue()' already drains the queue
before destroying it, so there is no need to flush it
explicitly.So,remove the redundant 'flush_workqueue()'
calls.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
drivers/edac/wq.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/edac/wq.c b/drivers/edac/wq.c
index d021d287eaec..ad3f516627c5 100644
--- a/drivers/edac/wq.c
+++ b/drivers/edac/wq.c
@@ -37,7 +37,6 @@ int edac_workqueue_setup(void)
void edac_workqueue_teardown(void)
{
- flush_workqueue(wq);
destroy_workqueue(wq);
wq = NULL;
}
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-01 2:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-01 2:16 [PATCH linux-next] EDAC:wq:Remove the redundant 'flush_workqueue()' calls cgel.zte
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).