OSDN Git Service

dm: Remove redundant flush_workqueue() calls
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 10 Oct 2021 14:29:28 +0000 (16:29 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Nov 2021 17:28:43 +0000 (13:28 -0400)
commitea3dba305252b4b3248836f2e1932d7a1aec647c
tree1a64f86665260504d6676075a8607845c5d23414
parent58d0f180bd91a02e92f7794601ff607f51fab131
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>
drivers/md/dm-bufio.c
drivers/md/dm-zoned-target.c