diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2017-07-04 10:18:50 +0300 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2017-07-04 10:44:46 +0300 |
commit | e5859d3a0ea07bf948f4538d47fe6547f6e115be (patch) | |
tree | 06b7ccf69b3211406e31f5e23e82caac774b6b8f /drivers/nvme | |
parent | cda5fd1ac5c2c42d1b2e1847aa0438b229c5c068 (diff) | |
download | op-kernel-dev-e5859d3a0ea07bf948f4538d47fe6547f6e115be.zip op-kernel-dev-e5859d3a0ea07bf948f4538d47fe6547f6e115be.tar.gz |
nvme-fc: use blk_mq_delay_run_hw_queue instead of open-coding it
Cc: James Smart <james.smart@broadcom.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/fc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index 1e859ee..50cc3b2 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -1966,10 +1966,9 @@ nvme_fc_start_fcp_op(struct nvme_fc_ctrl *ctrl, struct nvme_fc_queue *queue, if (ret != -EBUSY) return BLK_STS_IOERR; - if (op->rq) { - blk_mq_stop_hw_queues(op->rq->q); - blk_mq_delay_queue(queue->hctx, NVMEFC_QUEUE_DELAY); - } + if (op->rq) + blk_mq_delay_run_hw_queue(queue->hctx, NVMEFC_QUEUE_DELAY); + return BLK_STS_RESOURCE; } |