[PATCH 1/2] nvmet: add get_queue_size op for controllers
Sagi Grimberg
sagi at grimberg.me
Tue Sep 21 15:47:48 PDT 2021
> diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c
> index b8425fa34300..cd42655d2980 100644
> --- a/drivers/nvme/target/core.c
> +++ b/drivers/nvme/target/core.c
> @@ -1205,7 +1205,10 @@ static void nvmet_init_cap(struct nvmet_ctrl *ctrl)
> /* CC.EN timeout in 500msec units: */
> ctrl->cap |= (15ULL << 24);
> /* maximum queue entries supported: */
> - ctrl->cap |= NVMET_QUEUE_SIZE - 1;
> + if (ctrl->ops->get_queue_size)
Maybe call it max_queue_size? it is a maximum supported in essence.
More information about the Linux-nvme
mailing list