summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2012-07-24 15:01:04 -0600
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2012-07-25 14:52:49 -0400
commite9ef46369f5107e634a93b7fc4e62a1f53343197 (patch)
treec8fb6e5d528af37c077df3242e7a96df10a0e8cb /drivers
parentdf3481399042200792822b6243e36a95a557b57e (diff)
downloadlinux-stable-e9ef46369f5107e634a93b7fc4e62a1f53343197.tar.gz
linux-stable-e9ef46369f5107e634a93b7fc4e62a1f53343197.tar.bz2
linux-stable-e9ef46369f5107e634a93b7fc4e62a1f53343197.zip
NVMe: Set request queue logical block size
Sets the request queue logical block size with the block size of the namespace. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/nvme.c1
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,
ns->disk = disk;
lbaf = id->flbas & 0xf;
ns->lba_shift = id->lbaf[lbaf].ds;
+ blk_queue_logical_block_size(ns->queue, 1 << ns->lba_shift);
disk->major = nvme_major;
disk->minors = NVME_MINORS;