OSDN Git Service

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)
commit38210800bf66d7302da1bb5b624ad68638da1562
tree15addd048414fd3d8cede3c3af6607327e2cf166
parent65ff5cd04551daf2c11c7928e48fc3483391c900
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 54b2fcee1db041a83b52b51752dade6090cf952f.

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