diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-10-10 17:29:28 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2021-11-01 20:28:43 +0300 |
commit | ea3dba305252b4b3248836f2e1932d7a1aec647c (patch) | |
tree | 1a64f86665260504d6676075a8607845c5d23414 /drivers/md/dm-bufio.c | |
parent | 58d0f180bd91a02e92f7794601ff607f51fab131 (diff) | |
download | linux-ea3dba305252b4b3248836f2e1932d7a1aec647c.tar.xz |
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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-bufio.c')
-rw-r--r-- | drivers/md/dm-bufio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c index 50f3e673729c..fc8f8e9f9e39 100644 --- a/drivers/md/dm-bufio.c +++ b/drivers/md/dm-bufio.c @@ -2082,7 +2082,6 @@ static void __exit dm_bufio_exit(void) int bug = 0; cancel_delayed_work_sync(&dm_bufio_cleanup_old_work); - flush_workqueue(dm_bufio_wq); destroy_workqueue(dm_bufio_wq); if (dm_bufio_client_count) { |