block: Add PCI P2P flag for request queue
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 4 Oct 2018 21:27:41 +0000 (15:27 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Oct 2018 17:18:19 +0000 (12:18 -0500)
commit49d92c0dd64ae769c2d67fe27ac260ae31259ba6
tree7dccbefba266cb993ff7d9be423c4e1018a8759f
parente4f7a9480337543efaae137536ed686d0cd48ff7
block: Add PCI P2P flag for request queue

Add QUEUE_FLAG_PCI_P2P, meaning a driver's request queue supports targeting
P2P memory.  This will be used by P2P providers and orchestrators (in
subsequent patches) to ensure block devices can support P2P memory before
submitting P2P-backed pages to submit_bio().

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h