Skip to content

Commit 1c5f8e8

Browse files
hreineckeChristoph Hellwig
authored andcommitted
nvme-loop: clear NVME_LOOP_Q_LIVE when nvme_loop_configure_admin_queue() fails
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 <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent a6c144f commit 1c5f8e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/nvme/target/loop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ static int nvme_loop_configure_admin_queue(struct nvme_loop_ctrl *ctrl)
406406
return 0;
407407

408408
out_cleanup_queue:
409+
clear_bit(NVME_LOOP_Q_LIVE, &ctrl->queues[0].flags);
409410
blk_cleanup_queue(ctrl->ctrl.admin_q);
410411
out_cleanup_fabrics_q:
411412
blk_cleanup_queue(ctrl->ctrl.fabrics_q);

0 commit comments

Comments
 (0)