Home Home > GIT Browse > openSUSE-42.3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilck <mwilck@suse.com>2018-01-10 21:28:25 +0100
committerMartin Wilck <mwilck@suse.com>2018-01-10 23:30:48 +0100
commitcb49f5322915e62eae274444f759d74a08227826 (patch)
treed08d57f9a0adb5a8c3f3a7fbe7501bf23c2f02a9
parent775ac6c5aa3c9ef1966142a9e70108e4a3bed054 (diff)
Refresh patches.drivers/nvme-loop-check-if-queue-is-ready-in-queue_rq.patch (bsc#1075397).
-rw-r--r--drivers/nvme/target/loop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c
index 0ca5e0f3b51e..55cd87e40909 100644
--- a/drivers/nvme/target/loop.c
+++ b/drivers/nvme/target/loop.c
@@ -417,11 +417,10 @@ static int nvme_loop_configure_admin_queue(struct nvme_loop_ctrl *ctrl)
error = nvmf_connect_admin_queue(&ctrl->ctrl);
if (error)
goto out_cleanup_queue;
+ set_bit(NVME_LOOP_Q_LIVE, &ctrl->queues[0].flags);
error = nvmf_reg_read64(&ctrl->ctrl, NVME_REG_CAP, &ctrl->cap);
if (error) {
- set_bit(NVME_LOOP_Q_LIVE, &ctrl->queues[0].flags);
-
dev_err(ctrl->ctrl.device,
"prop_get NVME_REG_CAP failed\n");
goto out_cleanup_queue;