]> Git Repo - linux.git/commitdiff
NVMe: Add namespaces with no LBA range feature
authorKeith Busch <[email protected]>
Thu, 31 Jan 2013 21:40:38 +0000 (14:40 -0700)
committerMatthew Wilcox <[email protected]>
Fri, 22 Mar 2013 18:50:23 +0000 (14:50 -0400)
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: Keith Busch <[email protected]>
Signed-off-by: Matthew Wilcox <[email protected]>
drivers/block/nvme.c

index 993c014d195ac403cd1f3547b6de6ae4b41d0584..e209ec5930ccaa295c40ac764df5669c1f974433 100644 (file)
@@ -1540,7 +1540,7 @@ static int __devinit nvme_dev_add(struct nvme_dev *dev)
                res = nvme_get_features(dev, NVME_FEAT_LBA_RANGE, i,
                                                        dma_addr + 4096, NULL);
                if (res)
-                       continue;
+                       memset(mem + 4096, 0, 4096);
 
                ns = nvme_alloc_ns(dev, i, mem, mem + 4096);
                if (ns)
This page took 0.058581 seconds and 4 git commands to generate.