nvme-pci: update sqsize when adjusting the queue depth
authorChristoph Hellwig <hch@lst.de>
Sun, 25 Dec 2022 10:32:32 +0000 (11:32 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Dec 2022 19:10:51 +0000 (12:10 -0700)
commit88d356ca41ba1c3effc2d4208dfbd4392f58cd6d
tree9893f71bbd85aa15e93984d9c6cc1c46ad702622
parent33b93727ce90c8db916fb071ed13e90106339754
nvme-pci: update sqsize when adjusting the queue depth

Update the core sqsize field in addition to the PCIe-specific
q_depth field as the core tagset allocation helpers rely on it.

Fixes: 0da7feaa5913 ("nvme-pci: use the tagset alloc/free helpers")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Hugh Dickins <hughd@google.com>
Link: https://lore.kernel.org/r/20221225103234.226794-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c