]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Mar 2025 19:54:20 +0000 (12:54 -0700)
commitbfe7f298eedccffecc263b5c42e42b6fa2dbe7e1
treea036224784bcb25f37476b83ac4f500e9985a0f2
parent94e7476fa7c5412c67a7cb5feb8b8180f69f09f7
nvme: only allow entering LIVE from CONNECTING state

[ Upstream commit d2fe192348f93fe3a0cb1e33e4aba58e646397f4 ]

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