[PATCH] nvmet: return 'namespace not ready' for disabled namespaces

Sagi Grimberg sagi at grimberg.me
Mon Aug 19 06:17:06 PDT 2024




On 19/08/2024 15:29, Hannes Reinecke wrote:
> When a namespace is disabled from configfs returning 'path error'
> is quite an odd choice; the actual description for that error is:
> 'The command was not completed as a result of a controller internal
> error that is specific to the controller processing the command.'
> Which is not the case here; once disabled the namespace is disabled
> for the entire subsystem, not just the controller.
> So return 'namespace not ready' here to clarify the problem.

Hannes, can you explain what this patch is solving?

The reason why this error was selected is because this is a path
error, which will trigger a host IO failover.



More information about the Linux-nvme mailing list