nvme-pci: set doorbell config before unquiescing
authorWilliam Butler <wab@google.com>
Wed, 10 Jan 2024 18:28:55 +0000 (18:28 +0000)
committerKeith Busch <kbusch@kernel.org>
Wed, 10 Jan 2024 18:36:12 +0000 (10:36 -0800)
commit06c59d427017fcde3107c236177fcc74c9db7909
tree2698b549131f5f196eaa266395e698358bb480e1
parent9a1abc24850eb759e36a2f8869161c3b7254c904
nvme-pci: set doorbell config before unquiescing

During resets, if queues are unquiesced first, then the host can submit
IOs to the controller using shadow doorbell logic but the controller
won't be aware. This can lead to necessary MMIO doorbells from being
not issued, causing requests to be delayed and timed-out.

Signed-off-by: William Butler <wab@google.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c