Re: [PATCH v5 01/10] block: add BLK_STS_P2PDMA for unsupported peer-to-peer transfers
[email protected] Thu, 23 Jul 2026 20:51:14 +0000
| Newsgroups | org.kernel.vger.linux-raid,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <[email protected]> |
> From: Logan Gunthorpe <[email protected]> > > blk_dma_map_iter_start() reports BLK_STS_INVAL when a P2PDMA transfer > is attempted between two devices whose PCIe topology cannot route it. > blk_path_error() treats INVAL as retryable, so multipath requeues the > I/O forever, and callers cannot tell it apart from an invalid request. > md also ignores it for member failures, so a mirror silently diverges. > > Restoring the old BLK_STS_TARGET would stay ambiguous -- nvme maps > NS_NOT_READY, LBA_RANGE and CMD_INTERRUPTED to it too. Add a dedicated > BLK_STS_P2PDMA, non-retryable in blk_path_error(), and return it from > blk_dma_map_iter_start(). > > Fixes: 858299dc6160 ("block: add scatterlist-less DMA mapping helpers") > Fixes: 7ce3c1dd78fc ("nvme-pci: convert the data mapping to blk_rq_dma_map") > Cc: [email protected] # v6.17 > Signed-off-by: Logan Gunthorpe <[email protected]> > Signed-off-by: Mykola Marzhan <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=1