diff options
Diffstat (limited to 'drivers/block/nvme.c')
-rw-r--r-- | drivers/block/nvme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index f4996b0e4b1a..38b9c73f6706 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -1344,6 +1344,7 @@ static struct nvme_ns *nvme_alloc_ns(struct nvme_dev *dev, int nsid, | |||
1344 | ns->disk = disk; | 1344 | ns->disk = disk; |
1345 | lbaf = id->flbas & 0xf; | 1345 | lbaf = id->flbas & 0xf; |
1346 | ns->lba_shift = id->lbaf[lbaf].ds; | 1346 | ns->lba_shift = id->lbaf[lbaf].ds; |
1347 | blk_queue_logical_block_size(ns->queue, 1 << ns->lba_shift); | ||
1347 | 1348 | ||
1348 | disk->major = nvme_major; | 1349 | disk->major = nvme_major; |
1349 | disk->minors = NVME_MINORS; | 1350 | disk->minors = NVME_MINORS; |