lkml.org 
[lkml]   [2018]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 4.18 53/88] nvme-rdma: unquiesce queues when deleting the controller
    Date
    From: Sagi Grimberg <sagi@grimberg.me>

    [ Upstream commit 90140624e8face94207003ac9a9d2a329b309d68 ]

    If the controller is going away, we need to unquiesce the IO queues so
    that all pending request can fail gracefully before moving forward with
    controller deletion. Do that before we destroy the IO queues so
    blk_cleanup_queue won't block in freeze.

    Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
    ---
    drivers/nvme/host/rdma.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
    index 66ec5985c9f3..69fb62feb833 100644
    --- a/drivers/nvme/host/rdma.c
    +++ b/drivers/nvme/host/rdma.c
    @@ -1741,6 +1741,8 @@ static void nvme_rdma_shutdown_ctrl(struct nvme_rdma_ctrl *ctrl, bool shutdown)
    nvme_rdma_stop_io_queues(ctrl);
    blk_mq_tagset_busy_iter(&ctrl->tag_set,
    nvme_cancel_request, &ctrl->ctrl);
    + if (shutdown)
    + nvme_start_queues(&ctrl->ctrl);
    nvme_rdma_destroy_io_queues(ctrl, shutdown);
    }

    --
    2.17.1
    \
     
     \ /
      Last update: 2018-09-07 02:39    [W:3.981 / U:0.364 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site