]> www.infradead.org Git - users/hch/misc.git/commit
nvme-pci: use a better encoding for small prp pool allocations
authorChristoph Hellwig <hch@lst.de>
Sat, 5 Oct 2024 17:21:33 +0000 (19:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 10 Oct 2024 05:45:05 +0000 (07:45 +0200)
commitd066726d73b963096dec486ce14ce6e6710ffbae
tree34058a07ef2be9e0d524338f59f2d3b3cbfb5f17
parent3f42d625b56b40d463e7d0862bed209ef169223d
nvme-pci: use a better encoding for small prp pool allocations

There is plenty of unused space in the iod next to nr_descriptors.
Add a separate bool (which could be condensed to a single bit once we
start running out of space) to encode that the transfer is using
the full page sized pool, and use a normal 0..n count for the number of
descriptors.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c