block: set FOLL_PCI_P2PDMA in bio_map_user_iov()
authorLogan Gunthorpe <logang@deltatee.com>
Fri, 21 Oct 2022 17:41:14 +0000 (11:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Nov 2022 18:29:21 +0000 (11:29 -0700)
commit7ee4ccf57484d260c37b29f9a48b65c4101403e8
treeeb0e528d232f461d2521e0e1c17b265677751d47
parent5e3e3f2e15df46abcab1959f93f214f778b6ec49
block: set FOLL_PCI_P2PDMA in bio_map_user_iov()

When a bio's queue supports PCI P2PDMA, set FOLL_PCI_P2PDMA for
iov_iter_get_pages_flags(). This allows PCI P2PDMA pages to be
passed from userspace and enables the NVMe passthru requests to
use P2PDMA pages.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20221021174116.7200-8-logang@deltatee.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-map.c