Skip to content

Commit

Permalink
NVMe: Add namespaces with no LBA range feature
Browse files Browse the repository at this point in the history
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 <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
  • Loading branch information
Keith Busch authored and Matthew Wilcox committed Mar 22, 2013
1 parent 7946168 commit 1220903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1220903

Please sign in to comment.