[PATCH 2/4] nvme-pci: update sqsize when adjusting the queue depth

Christoph Hellwig hch at lst.de
Wed Dec 28 08:10:50 PST 2022


On Sun, Dec 25, 2022 at 01:19:43PM +0200, Sagi Grimberg wrote:
> But if you want to patches 1+2 to be taken before 3+4, I'd make sqsize
> to be a 0's based value of q_depth after we subtract one entry for queue
> wraparound. So others would not get affected from patches 1+2. Then in
> one batch make all assignments to sqsize 1's based like in patch 3 and
> change nvme_alloc_io_tagset at the same time.

1 doe not make any difference in the 0s based vs not values,
they just reduce the queue size by 1 intentionally.



More information about the Linux-nvme mailing list