diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 62bc81b610a22733832d879cd9aa2340b0984d6b..f0298a32486101c752e5c2fc6062799b9682af0b 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -830,7 +830,7 @@ static blk_status_t nvme_setup_sgl_simple(struct nvme_dev *dev, struct bio_vec *bv) { struct nvme_iod *iod = blk_mq_rq_to_pdu(req); - unsigned int length = blk_rq_bytes(req); + unsigned int length = blk_rq_payload_bytes(req); iod->first_dma = dma_map_page(dev->dev, bv->bv_page, bv->bv_offset, length, rq_dma_dir(req));