nvme: remove the NVME_NS_DEAD check in nvme_remove_invalid_namespaces
authorChristoph Hellwig <hch@lst.de>
Tue, 1 Nov 2022 15:00:40 +0000 (16:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Nov 2022 14:35:34 +0000 (08:35 -0600)
commit4f17344e9daeb6e9f89976d811a5373710ed1f04
tree1b5c2497faf38ff4c83961ea0ce598540b27d89a
parent23a908647efade186576c9628dd7bb560f6e759b
nvme: remove the NVME_NS_DEAD check in nvme_remove_invalid_namespaces

The NVME_NS_DEAD check only made sense when we revalidated namespaces
in nvme_passthrough_end for commands that affected the namespace inventory.
These days NVME_NS_DEAD is only set during reset or when tearing down
namespaces, and we always remove all namespaces right after that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20221101150050.3510-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c