[PATCH] nvme: fix dma direction macro in dma_unmap_page
Jens Axboe
axboe at kernel.dk
Fri Jul 14 12:56:17 PDT 2023
On 7/14/23 1:14?PM, zhichuang at google.com wrote:
> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
> index 72725729cb6c..7778f384293c 100644
> --- a/drivers/nvme/host/pci.c
> +++ b/drivers/nvme/host/pci.c
> @@ -967,7 +967,7 @@ static __always_inline void nvme_pci_unmap_rq(struct request *req)
> struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
>
> dma_unmap_page(dev->dev, iod->meta_dma,
> - rq_integrity_vec(req)->bv_len, rq_data_dir(req));
> + rq_integrity_vec(req)->bv_len, rq_dma_dir(req));
> }
>
> if (blk_rq_nr_phys_segments(req))
This already got fixed and applied by Keith, pulled by me, and heading
upstream today:
https://git.kernel.dk/cgit/linux/commit/?h=block-6.5&id=b8f6446b6853768cb99e7c201bddce69ca60c15e
--
Jens Axboe
More information about the Linux-nvme
mailing list