[PATCH] Revert "nvme: verify MNAN value if ANA is enabled"
Chaitanya Kulkarni
chaitanya.kulkarni at wdc.com
Wed Jun 9 19:45:39 PDT 2021
This reverts commit 8872c159c7a83daf633768cee7a7ef7154010341. This is
needed to move forward with the blktests for now, without this patch
all the testcases result in the error :-
[ 3502.072798] nvme nvme1: Invalid MNAN value 1024
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
---
drivers/nvme/host/multipath.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c
index 23573fe3fc7d..a501917d4c6e 100644
--- a/drivers/nvme/host/multipath.c
+++ b/drivers/nvme/host/multipath.c
@@ -813,13 +813,6 @@ int nvme_mpath_init_identify(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id)
!(ctrl->subsys->cmic & NVME_CTRL_CMIC_ANA))
return 0;
- if (!ctrl->max_namespaces ||
- ctrl->max_namespaces > le32_to_cpu(id->nn)) {
- dev_err(ctrl->device,
- "Invalid MNAN value %u\n", ctrl->max_namespaces);
- return -EINVAL;
- }
-
ctrl->anacap = id->anacap;
ctrl->anatt = id->anatt;
ctrl->nanagrpid = le32_to_cpu(id->nanagrpid);
--
2.22.1
More information about the Linux-nvme
mailing list