nvme-rdma: fix typo in comment
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Wed, 19 Apr 2023 23:17:50 +0000 (02:17 +0300)
committerKeith Busch <kbusch@kernel.org>
Mon, 12 Jun 2023 17:33:02 +0000 (10:33 -0700)
There is no ib_stop_cq API and the need for the +1 is for ib_drain_qp.

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Israel Rukshin <israelr@nvidia.com>
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/rdma.c

index 0eb79696fb7365c1195be8b8e26fa36dc0eacccc..5e636a2d7ce14d9fb3f49697b22b66b8a2e79a3a 100644 (file)
@@ -501,7 +501,7 @@ static int nvme_rdma_create_queue_ib(struct nvme_rdma_queue *queue)
        }
        ibdev = queue->device->dev;
 
-       /* +1 for ib_stop_cq */
+       /* +1 for ib_drain_qp */
        queue->cq_size = cq_factor * queue->queue_size + 1;
 
        ret = nvme_rdma_create_cq(ibdev, queue);