Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <christophe.jaillet@wanadoo.fr>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/2d6c2e031e4aa2acf2ac4e0bbbc17cfdcc8dbee2.1634236560.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

authored by

Christophe JAILLET and committed by
Boris Ostrovsky
d8da2667 dce69259

-1
-1
drivers/xen/pvcalls-back.c
··· 465 465 write_unlock_bh(&mappass->sock->sk->sk_callback_lock); 466 466 } 467 467 sock_release(mappass->sock); 468 - flush_workqueue(mappass->wq); 469 468 destroy_workqueue(mappass->wq); 470 469 kfree(mappass); 471 470