projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af8a249
)
nvme: use the DMA_ATTR_NO_WARN attribute
author
Mauricio Faria de Oliveira
<
[email protected]
>
Tue, 11 Oct 2016 20:54:20 +0000
(13:54 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 11 Oct 2016 22:06:32 +0000
(15:06 -0700)
Use the DMA_ATTR_NO_WARN attribute for the dma_map_sg() call of the nvme
driver that returns BLK_MQ_RQ_QUEUE_BUSY (not for BLK_MQ_RQ_QUEUE_ERROR).
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Mauricio Faria de Oliveira <
[email protected]
>
Reviewed-by: Gabriel Krisman Bertazi <
[email protected]
>
Cc: Keith Busch <
[email protected]
>
Cc: Jens Axboe <
[email protected]
>
Cc: Benjamin Herrenschmidt <
[email protected]
>
Cc: Michael Ellerman <
[email protected]
>
Cc: Krzysztof Kozlowski <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/nvme/host/pci.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/pci.c
b/drivers/nvme/host/pci.c
index 68ef1875e8a88cdc6e7bb67a751c6421ddbf0d17..0fc99f0f257110a063f3e58722b2f0ec08da655e 100644
(file)
--- a/
drivers/nvme/host/pci.c
+++ b/
drivers/nvme/host/pci.c
@@
-515,7
+515,8
@@
static int nvme_map_data(struct nvme_dev *dev, struct request *req,
goto out;
ret = BLK_MQ_RQ_QUEUE_BUSY;
- if (!dma_map_sg(dev->dev, iod->sg, iod->nents, dma_dir))
+ if (!dma_map_sg_attrs(dev->dev, iod->sg, iod->nents, dma_dir,
+ DMA_ATTR_NO_WARN))
goto out;
if (!nvme_setup_prps(dev, req, size))