mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 02:01:29 +00:00
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>
This commit is contained in:
parent
cda5fd1ac5
commit
e5859d3a0e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user