]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme: sync timeout work on failed reset
authorKeith Busch <kbusch@kernel.org>
Wed, 28 Jun 2023 14:48:15 +0000 (07:48 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 30 Jun 2023 17:48:15 +0000 (10:48 -0700)
commita2b5d5443fa7a0e9f26b31598bcc38c2b66300d9
treeaf75fd703d4c250e77a393eefb399339473f5299
parent2ab4e5f44a869eaf61d7520ad6296b91f67efeed
nvme: sync timeout work on failed reset

Timeouts during reset will set the controller for failure, preventing
the state change to LIVE. Ensure all timeout work is synced after the
controller disabling completes to ensure we don't have any other tasks
messing with any namespace request_queue's.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c