Skip to content

Commit d8da266

Browse files
tititiou36bostrovs
authored andcommitted
xen/pvcalls-back: 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]> Acked-by: Stefano Stabellini <[email protected]> Link: https://lore.kernel.org/r/2d6c2e031e4aa2acf2ac4e0bbbc17cfdcc8dbee2.1634236560.git.christophe.jaillet@wanadoo.fr Signed-off-by: Boris Ostrovsky <[email protected]>
1 parent dce6925 commit d8da266

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/xen/pvcalls-back.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ static int pvcalls_back_release_passive(struct xenbus_device *dev,
465465
write_unlock_bh(&mappass->sock->sk->sk_callback_lock);
466466
}
467467
sock_release(mappass->sock);
468-
flush_workqueue(mappass->wq);
469468
destroy_workqueue(mappass->wq);
470469
kfree(mappass);
471470

0 commit comments

Comments
 (0)