]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: fix PRP pool size
authorChristoph Hellwig <hch@lst.de>
Tue, 18 Aug 2020 17:51:59 +0000 (19:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Aug 2020 23:14:27 +0000 (17:14 -0600)
commitda3d6920c971147c7aeefd2f711f9624c37623ce
tree0164b21219c5ea5e6e348e99a925e5f132bf6e04
parent78a875ae64baef64b7a881fd75b10c79a1ef306e
nvme-pci: fix PRP pool size

All operations are based on the controller, not the host page size.
Switch the dma pool to use the controller page size as well to avoid
massive overallocations on large page size systems.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c