[PATCH v2 4/5] nvme-loop: set sqsize to 0-based value, per spec
Sagi Grimberg
sagi at grimberg.me
Tue Aug 16 01:59:44 PDT 2016
On 15/08/16 19:47, Jay Freyensee wrote:
> Signed-off-by: Jay Freyensee <james_p_freyensee at linux.intel.com>
> ---
> drivers/nvme/target/loop.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c
> index 94e7829..ce22d4b0 100644
> --- a/drivers/nvme/target/loop.c
> +++ b/drivers/nvme/target/loop.c
> @@ -558,7 +558,7 @@ static int nvme_loop_create_io_queues(struct nvme_loop_ctrl *ctrl)
>
> memset(&ctrl->tag_set, 0, sizeof(ctrl->tag_set));
> ctrl->tag_set.ops = &nvme_loop_mq_ops;
> - ctrl->tag_set.queue_depth = ctrl->ctrl.sqsize;
> + ctrl->tag_set.queue_depth = ctrl->ctrl.sqsize + 1;
Just use opts->queue_size.
More information about the Linux-nvme
mailing list