Skip to content

Commit ea3dba3

Browse files
tititiou36snitm
authored andcommitted
dm: Remove redundant flush_workqueue() calls
destroy_workqueue() already drains the queue before destroying it, so there is no need to flush it explicitly. Remove the redundant flush_workqueue() calls. This was generated with coccinelle: @@ expression E; @@ - flush_workqueue(E); destroy_workqueue(E); Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 58d0f18 commit ea3dba3

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

drivers/md/dm-bufio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,6 @@ static void __exit dm_bufio_exit(void)
20822082
int bug = 0;
20832083

20842084
cancel_delayed_work_sync(&dm_bufio_cleanup_old_work);
2085-
flush_workqueue(dm_bufio_wq);
20862085
destroy_workqueue(dm_bufio_wq);
20872086

20882087
if (dm_bufio_client_count) {

drivers/md/dm-zoned-target.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,6 @@ static void dmz_dtr(struct dm_target *ti)
967967
struct dmz_target *dmz = ti->private;
968968
int i;
969969

970-
flush_workqueue(dmz->chunk_wq);
971970
destroy_workqueue(dmz->chunk_wq);
972971

973972
for (i = 0; i < dmz->nr_ddevs; i++)

0 commit comments

Comments
 (0)