]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:12 +0000 (19:22 +0100)
commit169a040179c856ae3a3ea511b44ce7632482293c
treece7b0234301050b13e1b70a2d91ead89009e4c7a
parent74c2a09c583f96f1399993d58809f9a54d11d502
Revert "nvme-pci: remove last_sq_tail"

[ Upstream commit 38210800bf66d7302da1bb5b624ad68638da1562 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/pci.c