[PATCHv3 7/7] nvme: convert metadata mapping to dma iter
Keith Busch
kbusch at kernel.org
Tue Jul 29 11:56:53 PDT 2025
On Tue, Jul 29, 2025 at 07:34:42AM -0700, Keith Busch wrote:
> +static blk_status_t nvme_map_metadata(struct request *req)
> {
...
> + nvme_pci_sgl_set_seg(sg_list, sgl_dma, i);
This needs an error check and unmap if so, just like data prp/sgl setup:
if (unlikely(iter->status))
nvme_unmap_metadata(req);
> + return iter.status;
> }
More information about the Linux-nvme
mailing list