On Tue, Sep 02, 2025 at 01:01:21PM -0700, Keith Busch wrote: > From: Keith Busch <kbusch@xxxxxxxxxx> > > We need to consider data and metadata dma mapping types separately. The > request and bio integrity payload have enough flag bits to internally > track the mapping type for each. Use these so the caller doesn't need to > track them, and provide separete request and integrity helpers to the > common code. This will make it easier to scale new mappings, like the > proposed MMIO attribute, without burdening the caller to track such > things. > > Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx> > --- > 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 ++ > 6 files changed, 34 insertions(+), 19 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>