From: James Smart Date: Thu, 28 Sep 2017 16:56:31 +0000 (-0700) Subject: nvme-fc: avoid workqueue flush stalls X-Git-Tag: v4.19~2212^2~86^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71c691fd06cc2625966620c93ce21bdcce32ed95;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Sagi Grimberg Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index b600c07..50cc17e 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;