nvme-loop: clear NVME_LOOP_Q_LIVE when nvme_loop_configure_admin_queue() fails
[ Upstream commit 1c5f8e882a ]
When the call to nvme_enable_ctrl() in nvme_loop_configure_admin_queue()
fails the NVME_LOOP_Q_LIVE flag is not cleared.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1c80ca596c
commit
620424df29
@@ -394,6 +394,7 @@ static int nvme_loop_configure_admin_queue(struct nvme_loop_ctrl *ctrl)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out_cleanup_queue:
|
out_cleanup_queue:
|
||||||
|
clear_bit(NVME_LOOP_Q_LIVE, &ctrl->queues[0].flags);
|
||||||
blk_cleanup_queue(ctrl->ctrl.admin_q);
|
blk_cleanup_queue(ctrl->ctrl.admin_q);
|
||||||
out_cleanup_fabrics_q:
|
out_cleanup_fabrics_q:
|
||||||
blk_cleanup_queue(ctrl->ctrl.fabrics_q);
|
blk_cleanup_queue(ctrl->ctrl.fabrics_q);
|
||||||
|
|||||||
Reference in New Issue
Block a user