nvme-pci: use a better encoding for small prp pool allocations
authorChristoph Hellwig <hch@lst.de>
Mon, 12 May 2025 15:16:04 +0000 (17:16 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 20 May 2025 03:34:27 +0000 (05:34 +0200)
commita43d304f3abea73883f99287396a6e1eb57c3637
tree3e19313cb959dae34a80706e1f749905083f2820
parent357b536b3633afc174905f791cc00fd9fd2932b0
nvme-pci: use a better encoding for small prp pool allocations

Add a separate flag to encode that the transfer is using the small
page sized pool, and use a normal 0..n count for the number of
descriptors.

Contains improvements and suggestions from Kanchan Joshi
<joshi.k@samsung.com> and Leon Romanovsky <leon@kernel.org>.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Leon Romanovsky <leon@kernel.org>
drivers/nvme/host/pci.c