diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2022-02-10 20:12:36 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-02-28 12:45:06 +0100 |
commit | 72e8b5cd7dd387ba3eee81b0a59746ad8ccdcb5f (patch) | |
tree | 1d141e599fc6dbd614303baef1c489cc4d22f683 /drivers/nvme/host/rdma.c | |
parent | nvme-rdma: add helpers for mapping/unmapping request (diff) | |
download | linux-72e8b5cd7dd387ba3eee81b0a59746ad8ccdcb5f.tar.xz linux-72e8b5cd7dd387ba3eee81b0a59746ad8ccdcb5f.zip |
nvme: add a helper to initialize connect_q
Add and use helper to remove duplicate code for fabrics connect_q
initialization and error handling for all the transports.
Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/rdma.c')
-rw-r--r-- | drivers/nvme/host/rdma.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 14ec2c85db06..c49b9c3c46f2 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -978,11 +978,9 @@ static int nvme_rdma_configure_io_queues(struct nvme_rdma_ctrl *ctrl, bool new) goto out_free_io_queues; } - ctrl->ctrl.connect_q = blk_mq_init_queue(&ctrl->tag_set); - if (IS_ERR(ctrl->ctrl.connect_q)) { - ret = PTR_ERR(ctrl->ctrl.connect_q); + ret = nvme_ctrl_init_connect_q(&(ctrl->ctrl)); + if (ret) goto out_free_tag_set; - } } ret = nvme_rdma_start_io_queues(ctrl); |