nvme-pci: fix DMA direction of unmapping integrity data
authorMing Lei <ming.lei@redhat.com>
Thu, 13 Jul 2023 09:26:20 +0000 (17:26 +0800)
committerKeith Busch <kbusch@kernel.org>
Thu, 13 Jul 2023 15:16:07 +0000 (08:16 -0700)
commitb8f6446b6853768cb99e7c201bddce69ca60c15e
tree1845310b8e7f26d74abb3d9b3d3fa8cb62a00c17
parentac522fc6c3165fd0daa2f8da7e07d5f800586daa
nvme-pci: fix DMA direction of unmapping integrity data

DMA direction should be taken in dma_unmap_page() for unmapping integrity
data.

Fix this DMA direction, and reported in Guangwu's test.

Reported-by: Guangwu Zhang <guazhang@redhat.com>
Fixes: 4aedb705437f ("nvme-pci: split metadata handling from nvme_map_data / nvme_unmap_data")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c