diff options
author | 2020-05-16 09:25:34 -0600 | |
---|---|---|
committer | 2020-05-16 09:25:34 -0600 | |
commit | 3948955397511ad5b68dc65fa11fad941d71d307 (patch) | |
tree | 849b398f5ec603aa97bc6a1f6e387bfa90a7ba82 | |
parent | nvme: fix possible hang when ns scanning fails during error recovery (diff) | |
parent | nvme-pci: dma read memory barrier for completions (diff) | |
download | linux-dev-3948955397511ad5b68dc65fa11fad941d71d307.tar.xz linux-dev-3948955397511ad5b68dc65fa11fad941d71d307.zip |
Merge branch 'nvme-5.7' of git://git.infradead.org/nvme into block-5.7
Pull NVMe fix from Christoph.
* 'nvme-5.7' of git://git.infradead.org/nvme:
nvme-pci: dma read memory barrier for completions
-rw-r--r-- | drivers/nvme/host/pci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index e13c370de830..3726dc780d15 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -989,6 +989,11 @@ static inline int nvme_process_cq(struct nvme_queue *nvmeq) while (nvme_cqe_pending(nvmeq)) { found++; + /* + * load-load control dependency between phase and the rest of + * the cqe requires a full read memory barrier + */ + dma_rmb(); nvme_handle_cqe(nvmeq, nvmeq->cq_head); nvme_update_cq_head(nvmeq); } |