]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "nvme-pci: remove last_sq_tail"
authorKeith Busch <kbusch@kernel.org>
Fri, 30 Oct 2020 17:28:54 +0000 (10:28 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 2 Nov 2020 18:03:14 +0000 (19:03 +0100)
commitda07f3f77441da9f2fcebfcb5e4f3cfe33a897c4
tree15addd048414fd3d8cede3c3af6607327e2cf166
parent887d7266d3cbfa2b1223c0bb8d1ca9a7aec3256c
Revert "nvme-pci: remove last_sq_tail"

Multiple CPUs may be mapped to the same hctx, allowing mulitple
submission contexts to attempt commit_rqs(). We need to verify we're
not writing the same doorbell value multiple times since that's a spec
violation.

Revert commit ff4c73d5eb68f34b78a005981c870f8d294d7fa3.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=1878596
Reported-by: "B.L. Jones" <brandon.gustav@googlemail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c