nvme: also mark passthrough-only namespaces ready in nvme_update_ns_info
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Feb 2022 13:14:58 +0000 (14:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Mar 2022 10:47:56 +0000 (11:47 +0100)
commit8270e92a0e42ddb18254cc2e35f01c394a15cb10
tree5d4170929d0578cbe8bdd54e8b915973d955ef7f
parent6f2e0ae12aa8e64863caff8ff9e0c130ceb271cb
nvme: also mark passthrough-only namespaces ready in nvme_update_ns_info

commit 602e57c9799c19f27e440639deed3ec45cfe1651 upstream.

Commit e7d65803e2bb ("nvme-multipath: revalidate paths during rescan")
introduced the NVME_NS_READY flag, which nvme_path_is_disabled() uses
to check if a path can be used or not.  We also need to set this flag
for devices that fail the ZNS feature validation and which are available
through passthrough devices only to that they can be used in multipathing
setups.

Fixes: e7d65803e2bb ("nvme-multipath: revalidate paths during rescan")
Reported-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Tested-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/core.c