]> www.infradead.org Git - users/hch/misc.git/commit
nvmet: pci-epf: Remove redundant 'flush_workqueue()' calls
authorChen Ni <nichen@iscas.ac.cn>
Wed, 12 Mar 2025 08:56:25 +0000 (16:56 +0800)
committerKeith Busch <kbusch@kernel.org>
Thu, 20 Mar 2025 23:53:55 +0000 (16:53 -0700)
commitba65af9a2a0d90f2c3ef6c80793d79eba154945b
tree2a11f248b826d73f7abe8574d00feaaf7cf1c707
parent1b304c006b0fb4f0517a8c4ba8c46e88f48a069c
nvmet: pci-epf: 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: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/pci-epf.c