lkml.org 
[lkml]   [2021]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 11/88] nvme-loop: clear NVME_LOOP_Q_LIVE when nvme_loop_configure_admin_queue() fails
    Date
    From: Hannes Reinecke <hare@suse.de>

    [ Upstream commit 1c5f8e882a05de5c011e8c3fbeceb0d1c590eb53 ]

    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>
    ---
    drivers/nvme/target/loop.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c
    index 5f33c3a9469b..963d8de932d1 100644
    --- a/drivers/nvme/target/loop.c
    +++ b/drivers/nvme/target/loop.c
    @@ -430,6 +430,7 @@ static int nvme_loop_configure_admin_queue(struct nvme_loop_ctrl *ctrl)
    return 0;

    out_cleanup_queue:
    + clear_bit(NVME_LOOP_Q_LIVE, &ctrl->queues[0].flags);
    blk_cleanup_queue(ctrl->ctrl.admin_q);
    out_free_tagset:
    blk_mq_free_tag_set(&ctrl->admin_tag_set);
    --
    2.30.2
    \
     
     \ /
      Last update: 2021-06-28 17:06    [W:4.138 / U:0.656 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site