Commit 12209036 authored by Keith Busch's avatar Keith Busch Committed by Matthew Wilcox

NVMe: Add namespaces with no LBA range feature

The LBA Range Type feature is optional in the NVMe specification,
so we should continue with adding namespaces for controllers that do
not implement this feature.
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent 79461681
...@@ -1540,7 +1540,7 @@ static int __devinit nvme_dev_add(struct nvme_dev *dev) ...@@ -1540,7 +1540,7 @@ static int __devinit nvme_dev_add(struct nvme_dev *dev)
res = nvme_get_features(dev, NVME_FEAT_LBA_RANGE, i, res = nvme_get_features(dev, NVME_FEAT_LBA_RANGE, i,
dma_addr + 4096, NULL); dma_addr + 4096, NULL);
if (res) if (res)
continue; memset(mem + 4096, 0, 4096);
ns = nvme_alloc_ns(dev, i, mem, mem + 4096); ns = nvme_alloc_ns(dev, i, mem, mem + 4096);
if (ns) if (ns)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment