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

At the point where namespaces are marked dead, the controller is in a
non-live state and we won't get pass the identify commands.

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