Home Home > GIT Browse > openSUSE-42.3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2018-01-12 15:23:56 +0100
committerHannes Reinecke <hare@suse.de>2018-01-12 15:23:56 +0100
commitb2555b01389c2017dd1f4b34deb1f57076b29134 (patch)
tree955778c283ff85b59b760c0be7c62bf82e62347a
parentceb53a393cc3f760c5a43a8874de1965edcc1255 (diff)
Fixup hang when calling 'nvme list' on all paths down (bsc#1070052).
-rw-r--r--drivers/nvme/host/fabrics.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/fabrics.h b/drivers/nvme/host/fabrics.h
index a04a1ca31b1a..16e75a8bdd23 100644
--- a/drivers/nvme/host/fabrics.h
+++ b/drivers/nvme/host/fabrics.h
@@ -183,9 +183,9 @@ static inline int nvmf_check_init_req(struct nvme_ctrl *ctrl,
if (ctrl->state == NVME_CTRL_RECONNECTING ||
ctrl->state == NVME_CTRL_DELETING) {
nvme_req(rq)->status = NVME_SC_ABORT_REQ;
- return -EIO;
+ return BLK_MQ_RQ_QUEUE_ERROR;
}
- return -EAGAIN; /* try again later */
+ return BLK_MQ_RQ_QUEUE_BUSY; /* try again later */
}
return 0;