diff options
author | James Smart <jsmart2021@gmail.com> | 2017-09-28 09:56:31 -0700 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-11-01 16:28:03 +0100 |
commit | 71c691fd06cc2625966620c93ce21bdcce32ed95 (patch) | |
tree | 064fc233a8e3f99dfbfad47a4e4f798655873ef2 /drivers/nvme/host | |
parent | ecad0d2cb8a7997afdc95031ee3328b997aba5c4 (diff) |
nvme-fc: avoid workqueue flush stalls
There's no need to wait for the full nvme_wq, which is now shared,
to flush. flush only the delete_work item.
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Sagi Grimberg <sgi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host')
-rw-r--r-- | drivers/nvme/host/fc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index b600c07803cf..50cc17e99475 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -2693,7 +2693,7 @@ nvme_fc_del_nvme_ctrl(struct nvme_ctrl *nctrl) nvme_get_ctrl(&ctrl->ctrl); ret = __nvme_fc_del_ctrl(ctrl); if (!ret) - flush_workqueue(nvme_wq); + flush_work(&ctrl->delete_work); nvme_put_ctrl(&ctrl->ctrl); return ret; |