[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220424064739.3226800-1-ran.jianping@zte.com.cn>
Date: Sun, 24 Apr 2022 06:47:39 +0000
From: cgel.zte@...il.com
To: colyli@...e.de
Cc: kent.overstreet@...il.com, linux-bcache@...r.kernel.org,
linux-kernel@...r.kernel.org,
ran jianping <ran.jianping@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH] bcache: remove unneeded flush_workqueue
From: ran jianping <ran.jianping@....com.cn>
All work currently pending will be done first by calling destroy_workqueue,
so there is no need to flush it explicitly.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: ran jianping <ran.jianping@....com.cn>
---
drivers/md/bcache/writeback.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c
index 9ee0005874cd..9d0b4140ad8f 100644
--- a/drivers/md/bcache/writeback.c
+++ b/drivers/md/bcache/writeback.c
@@ -793,10 +793,8 @@ static int bch_writeback_thread(void *arg)
}
}
- if (dc->writeback_write_wq) {
- flush_workqueue(dc->writeback_write_wq);
+ if (dc->writeback_write_wq)
destroy_workqueue(dc->writeback_write_wq);
- }
cached_dev_put(dc);
wait_for_kthread_stop();
--
2.25.1
Powered by blists - more mailing lists