diff options
author | Christoph Hellwig <[email protected]> | 2022-11-01 16:00:41 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-11-02 08:35:34 -0600 |
commit | fde776afdd8467a09395a7aebdb2499f86315945 (patch) | |
tree | b4d2e39f35a80c6c01cfbbf86ff1bce78675184f | |
parent | 4f17344e9daeb6e9f89976d811a5373710ed1f04 (diff) |
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 <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r-- | drivers/nvme/host/core.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 390f2a2db323..871a8ab7ec19 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -4333,10 +4333,6 @@ static void nvme_validate_ns(struct nvme_ns *ns, struct nvme_ns_info *info) { int ret = NVME_SC_INVALID_NS | NVME_SC_DNR; - if (test_bit(NVME_NS_DEAD, &ns->flags)) - goto out; - - ret = NVME_SC_INVALID_NS | NVME_SC_DNR; if (!nvme_ns_ids_equal(&ns->head->ids, &info->ids)) { dev_err(ns->ctrl->device, "identifiers changed for nsid %d\n", ns->head->ns_id); |