From: Keith Busch <kbusch@xxxxxxxxxx> After reviewing and discussing with Leon and Jason on some of the proposed updates, it became clean that having the callers track p2p dma usage doesn't scale, and we have a convenient way to track these things in the existing structures anyway. So, thank goodness nvme is the only client of this API at the moment while we work out the kinks. While looking at it, I also noticed that integrity wouldn't attempt to use p2p pages, which I think was simply an oversight. Keith Busch (2): blk-integrity: enable p2p source and destination blk-mq-dma: bring back p2p request flags block/bio-integrity.c | 21 +++++++++++++++++---- block/blk-mq-dma.c | 4 ++++ drivers/nvme/host/pci.c | 21 ++++----------------- include/linux/bio-integrity.h | 1 + include/linux/blk-integrity.h | 14 ++++++++++++++ include/linux/blk-mq-dma.h | 11 +++++++++-- include/linux/blk_types.h | 2 ++ 7 files changed, 51 insertions(+), 23 deletions(-) -- 2.47.3