Skip to content

Commit

Permalink
Merge branch 'nvme-5.6-rc4' of git://git.infradead.org/nvme into bloc…
Browse files Browse the repository at this point in the history
…k-5.6

Pull NVMe fix from Keith.

* 'nvme-5.6-rc4' of git://git.infradead.org/nvme:
  nvme-pci: Hold cq_poll_lock while completing CQEs
  • Loading branch information
Jens Axboe committed Feb 28, 2020
2 parents cae740a + 9515743 commit 5b8ea58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/host/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,9 +1078,9 @@ static int nvme_poll(struct blk_mq_hw_ctx *hctx)

spin_lock(&nvmeq->cq_poll_lock);
found = nvme_process_cq(nvmeq, &start, &end, -1);
nvme_complete_cqes(nvmeq, start, end);
spin_unlock(&nvmeq->cq_poll_lock);

nvme_complete_cqes(nvmeq, start, end);
return found;
}

Expand Down

0 comments on commit 5b8ea58

Please sign in to comment.