[PATCH 07/17] nvme: remove the NVME_NS_DEAD check in nvme_validate_ns

Christoph Hellwig hch at lst.de
Sun Oct 30 02:28:08 PDT 2022


On Wed, Oct 26, 2022 at 03:52:25PM +0300, Sagi Grimberg wrote:
>
>> We never rescan namespaces after marking them dead, so this check is dead
>> now.
>
> scan_work can still run, I'd keep this one.

At this time the controller already has a non-live state, so the
command won't make it anywhere and thus except for a tiny race we
won't even get to this call.

That being said if we flush the scan_work earlier this will all become
moot anyway.



More information about the Linux-nvme mailing list