nvme: catch -ENODEV from nvme_revalidate_zones again
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Jul 2022 05:56:35 +0000 (07:56 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 26 Jul 2022 20:04:24 +0000 (16:04 -0400)
commit35c1b3f93e44abd4011731e007e90bbff0013a5a
tree5cff98422855e8c8b67ee68984d7ccedb05acb5b
parent4f1b057f6ce9b84ccddb9c3b1f16d7dde18a08a4
nvme: catch -ENODEV from nvme_revalidate_zones again

nvme_revalidate_zones can also return -ENODEV if e.g. zone sizes aren't
constant or not a power of two.  In that case we should jump to marking
the gendisk hidden and only support pass through.

Fixes: 602e57c9799c ("nvme: also mark passthrough-only namespaces ready in nvme_update_ns_info")
Reported-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Joel Granados <j.granados@samsung.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/core.c