[PATCH v2 4/5] nvme-loop: set sqsize to 0-based value, per spec

J Freyensee james_p_freyensee at linux.intel.com
Tue Aug 16 09:22:36 PDT 2016


On Tue, 2016-08-16 at 11:59 +0300, Sagi Grimberg wrote:
> 
> 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.

OK, will do.

Thanks,
J



More information about the Linux-nvme mailing list