Skip to content

Commit

Permalink
Merge branch 'nvme-5.7' of git://git.infradead.org/nvme into block-5.7
Browse files Browse the repository at this point in the history
Pull NVMe fix from Christoph.

* 'nvme-5.7' of git://git.infradead.org/nvme:
  nvme-pci: dma read memory barrier for completions
  • Loading branch information
axboe committed May 16, 2020
2 parents 59c7c3c + b69e2ef commit 3948955
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/nvme/host/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3948955

Please sign in to comment.