Commit 32a5e3aa authored by Luis Henriques's avatar Luis Henriques

Revert "nvme: use the DMA_ATTR_NO_WARN attribute"

BugLink: https://bugs.launchpad.net/bugs/1644596

This reverts commit 7c50722a.

The backports that fix bug #1633128 for xenial, in particular the backport
of upstream commit a9a62c93 ("dma-mapping: introduce the
DMA_ATTR_NO_WARN attribute"), introduce a regression.
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 498859e3
...@@ -557,8 +557,7 @@ static int nvme_map_data(struct nvme_dev *dev, struct request *req, ...@@ -557,8 +557,7 @@ static int nvme_map_data(struct nvme_dev *dev, struct request *req,
goto out; goto out;
ret = BLK_MQ_RQ_QUEUE_BUSY; ret = BLK_MQ_RQ_QUEUE_BUSY;
if (!dma_map_sg_attrs(dev->dev, iod->sg, iod->nents, dma_dir, if (!dma_map_sg(dev->dev, iod->sg, iod->nents, dma_dir))
DMA_ATTR_NO_WARN))
goto out; goto out;
if (!nvme_setup_prps(dev, req, blk_rq_bytes(req))) if (!nvme_setup_prps(dev, req, blk_rq_bytes(req)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment