]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:00 +0000 (14:24 +0200)
commit930dff618c293e2a99fcd256536cc1b0f2b0f5fe
treee2380877f0e817c52f7a980e47eea008609f05f6
parent2be4d9a7223c2d2bfdd86125c2331943fce1dd40
nvme: catch -ENODEV from nvme_revalidate_zones again

[ Upstream commit eda6c4edf15610155fb3fd3e37e8feb85fddf650 ]

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: a36d1712dd90 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c