lkml.org 
[lkml]   [2022]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH linux-next] bcache: writeback:Remove the redundant 'flush_workqueue()' calls
Date
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/md/bcache/writeback.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c
index 3f0ff3aab6f2..fd48a09e6096 100644
--- a/drivers/md/bcache/writeback.c
+++ b/drivers/md/bcache/writeback.c
@@ -802,7 +802,6 @@ static int bch_writeback_thread(void *arg)
}

if (dc->writeback_write_wq) {
- flush_workqueue(dc->writeback_write_wq);
destroy_workqueue(dc->writeback_write_wq);
}
cached_dev_put(dc);
--
2.25.1
\
 
 \ /
  Last update: 2022-08-01 04:19    [W:0.027 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site