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: 46e7422c ("nvme: move common logic into nvme_update_ns_info") Reported-by:Nilay Shroff <nilay@linux.ibm.com> Signed-off-by:
Christoph Hellwig <hch@lst.de> Tested-by:
Nilay Shroff <nilay@linux.ibm.com> Reviewed-by:
Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by:
Keith Busch <kbusch@kernel.org>
Showing
Please register or sign in to comment