Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme: don't create a multipath node for zero capacity devices
Apparently there are nvme controllers around that report namespaces in the namespace list which have zero capacity. Return -ENXIO instead of -ENODEV from nvme_update_ns_info_block so we don't create a hidden multipath node for these namespaces but entirely ignore them. Fixes: 46e7422 ("nvme: move common logic into nvme_update_ns_info") Reported-by: Nilay Shroff <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Tested-by: Nilay Shroff <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Keith Busch <[email protected]>
- Loading branch information