Hi Nilay, can you see if this patch makes a different for your weird controller with the listed but zero capacity namespaces? diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 3b0498f320e6b9..ad60cf5581a419 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -2089,7 +2089,7 @@ static int nvme_update_ns_info_block(struct nvme_ns *ns, if (id->ncap == 0) { /* namespace not allocated or attached */ info->is_removed = true; - ret = -ENODEV; + ret = -ENXIO; goto out; } lbaf = nvme_lbaf_index(id->flbas);