]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerChristoph Hellwig <hch@lst.de>
Wed, 23 Feb 2022 13:42:58 +0000 (14:42 +0100)
commit6faf3e62d20631a01fa2ed98d9b870d7f16e4a87
tree87156213e9e1edee7f3507465aa3c89dee04fb8d
parent646fdcb8373df224801762aad54bb5cda708003a
nvme: also mark passthrough-only namespaces ready in nvme_update_ns_info

Commit 82a48c43b673 ("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: 82a48c43b673 ("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>
drivers/nvme/host/core.c