]> www.infradead.org Git - users/willy/pagecache.git/commit
nvme: only allow entering LIVE from CONNECTING state
authorDaniel Wagner <wagi@kernel.org>
Fri, 14 Feb 2025 08:02:03 +0000 (09:02 +0100)
committerKeith Busch <kbusch@kernel.org>
Thu, 20 Feb 2025 17:14:25 +0000 (09:14 -0800)
commitd2fe192348f93fe3a0cb1e33e4aba58e646397f4
tree5e408431d2e768cd96c88140495e25349fbd0a06
parentf13409bb3f9140dad7256febcb478f0c9600312c
nvme: only allow entering LIVE from CONNECTING state

The fabric transports and also the PCI transport are not entering the
LIVE state from NEW or RESETTING. This makes the state machine more
restrictive and allows to catch not supported state transitions, e.g.
directly switching from RESETTING to LIVE.

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c