]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: ensure subsystem reset is single threaded
authorKeith Busch <kbusch@kernel.org>
Thu, 22 Sep 2022 15:13:47 +0000 (08:13 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Sep 2022 07:15:56 +0000 (09:15 +0200)
commit7a1ebcdac9d52bb7416bc410ed60d4aee92f9a5b
tree4a5dc2c413d8d9d769ead144092d3aba5703dd77
parentc0393ef282ed49a7c8955a6f12e9803773568b84
nvme: ensure subsystem reset is single threaded

The subsystem reset writes to a register, so we have to ensure the
device state is capable of handling that otherwise the driver may access
unmapped registers. Use the state machine to ensure the subsystem reset
doesn't try to write registers on a device already undergoing this type
of reset.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=214771
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/nvme.h