]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: catch -ENODEV from nvme_revalidate_zones again
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Jul 2022 05:56:35 +0000 (07:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:51 +0000 (17:22 -0600)
commit2af89d5aa954af54f61cdb236d20f1f795f33233
tree4507388e6d1514f119ac653eba5c8a653a21f8b5
parentfa61dcc42675118128c68f89fa41369fcb9e4430
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: 6faf3e62d206 ("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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c