]> 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)
commita36d1712dd9082742feb3544fb3e30146445ea2b
tree87156213e9e1edee7f3507465aa3c89dee04fb8d
parent458b65cb1a9a1edbd9350725e7483d2820e913d1
nvme: also mark passthrough-only namespaces ready in nvme_update_ns_info

Commit d93b2256eac6 ("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: d93b2256eac6 ("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