Skip to content

Commit ba65af9

Browse files
Chen Nikeithbusch
authored andcommitted
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 <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 1b304c0 commit ba65af9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/nvme/target/pci-epf.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,6 @@ static u16 nvmet_pci_epf_delete_sq(struct nvmet_ctrl *tctrl, u16 sqid)
13851385
if (!test_and_clear_bit(NVMET_PCI_EPF_Q_LIVE, &sq->flags))
13861386
return NVME_SC_QID_INVALID | NVME_STATUS_DNR;
13871387

1388-
flush_workqueue(sq->iod_wq);
13891388
destroy_workqueue(sq->iod_wq);
13901389
sq->iod_wq = NULL;
13911390

0 commit comments

Comments
 (0)