[PATCH v8 7/8] nvme: sysfs: emit the marginal path state in show_state()
John Meneghini
jmeneghi at redhat.com
Tue Jul 15 12:42:32 PDT 2025
On 7/9/25 6:12 PM, Keith Busch wrote:
> On Wed, Jul 09, 2025 at 05:19:18PM -0400, Bryan Gurney wrote:
>> If a controller has received a link integrity or congestion event, and
>> has the NVME_CTRL_MARGINAL flag set, emit "marginal" in the state
>> instead of "live", to identify the marginal paths.
>
> IMO, this attribute looks more aligned to report in the ana_state
> instead of overriding the controller's state.
>
We can't really do this because the ANA state is a documented protocol state.
The linux controller state is purely a linux software defined state. Unless I am wrong, there is nothing in the NVMe specification which defines the nvme_ctrl_state.
This is purely a linux definition and we should be able to change is any way we want.
We debated adding a new NVME_CTRL_MARGINAL state to this data structure,
enum nvme_ctrl_state {
NVME_CTRL_NEW,
NVME_CTRL_LIVE,
NVME_CTRL_RESETTING,
NVME_CTRL_CONNECTING,
NVME_CTRL_DELETING,
NVME_CTRL_DELETING_NOIO,
NVME_CTRL_DEAD,
};
If you don't like the flag we can do that. However, that doesn't seem worth the effort since Hannes has this working now with a flag.
/John
More information about the Linux-nvme
mailing list