Commit 31fdf184 authored by Sagi Grimberg's avatar Sagi Grimberg

nvme-rdma: reuse configure/destroy_admin_queue

No need to open-code it.
Signed-off-by: default avatarSagi Grimberg <>
Signed-off-by: default avatarChristoph Hellwig <>
parent 3f02fffb
......@@ -857,24 +857,8 @@ static void nvme_rdma_reconnect_ctrl_work(struct work_struct *work)
goto requeue;
ret = blk_mq_reinit_tagset(&ctrl->admin_tag_set,
if (ret)
goto requeue;
ret = nvme_rdma_init_queue(ctrl, 0, NVME_AQ_DEPTH);
if (ret)
goto requeue;
ret = nvmf_connect_admin_queue(&ctrl->ctrl);
if (ret)
goto requeue;
set_bit(NVME_RDMA_Q_LIVE, &ctrl->queues[0].flags);
ret = nvme_enable_ctrl(&ctrl->ctrl, ctrl->ctrl.cap);
nvme_rdma_destroy_admin_queue(ctrl, false);
ret = nvme_rdma_configure_admin_queue(ctrl, false);
if (ret)
goto requeue;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment