diff options
| author | Christoph Hellwig <[email protected]> | 2022-12-25 10:32:31 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-12-26 19:10:51 +0000 |
| commit | 33b93727ce90c8db916fb071ed13e90106339754 (patch) | |
| tree | ff95728d96647c217de8a0bc4f3e04fcc9eae808 /tools/perf/scripts/python/netdev-times.py | |
| parent | block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq (diff) | |
| download | kernel-33b93727ce90c8db916fb071ed13e90106339754.tar.gz kernel-33b93727ce90c8db916fb071ed13e90106339754.zip | |
nvme: fix setting the queue depth in nvme_alloc_io_tag_set
While the CAP.MQES field in NVMe is a 0s based filed with a natural one
off, we also need to account for the queue wrap condition and fix undo
the one off again in nvme_alloc_io_tag_set. This was never properly
done by the fabrics drivers, but they don't seem to care because there
is no actual physical queue that can wrap around, but it became a
problem when converting over the PCIe driver. Also add back the
BLK_MQ_MAX_DEPTH check that was lost in the same commit.
Fixes: 0da7feaa5913 ("nvme-pci: use the tagset alloc/free helpers")
Reported-by: Hugh Dickins <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: Hugh Dickins <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
