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.