Skip to content

Commit 3614496

Browse files
mgurtovoykeithbusch
authored andcommitted
nvme-rdma: introduce NVME_RDMA_MAX_METADATA_QUEUE_SIZE definition
This definition will be used by controllers that are configured with metadata support. For now, both regular and metadata controllers have the same maximal queue size but later commit will increase the maximal queue size for regular RDMA controllers to 256. We'll keep the maximal queue size for metadata controllers to be 128 since there are more resources that are needed for metadata operations and 128 is the optimal size found for metadata controllers base on testing. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Israel Rukshin <israelr@nvidia.com> Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent c82c370 commit 3614496

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/nvme/target/rdma.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,8 @@ static u8 nvmet_rdma_get_mdts(const struct nvmet_ctrl *ctrl)
20152015

20162016
static u16 nvmet_rdma_get_max_queue_size(const struct nvmet_ctrl *ctrl)
20172017
{
2018+
if (ctrl->pi_support)
2019+
return NVME_RDMA_MAX_METADATA_QUEUE_SIZE;
20182020
return NVME_RDMA_MAX_QUEUE_SIZE;
20192021
}
20202022

include/linux/nvme-rdma.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
#define NVME_RDMA_IP_PORT 4420
1010

11-
#define NVME_RDMA_MAX_QUEUE_SIZE 128
11+
#define NVME_RDMA_MAX_QUEUE_SIZE 128
12+
#define NVME_RDMA_MAX_METADATA_QUEUE_SIZE 128
1213

1314
enum nvme_rdma_cm_fmt {
1415
NVME_RDMA_CM_FMT_1_0 = 0x0,

0 commit comments

Comments
 (0)