NVMe: Set request queue logical block size
authorKeith Busch <keith.busch@intel.com>
Tue, 24 Jul 2012 21:01:04 +0000 (15:01 -0600)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Wed, 25 Jul 2012 18:52:49 +0000 (14:52 -0400)
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>
drivers/block/nvme.c

index f4996b0e4b1a197cc91a579f445d395cafbba85f..38b9c73f6706bcea94d045453f040a0dbcc317fd 100644 (file)
@@ -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;
This page took 0.026278 seconds and 5 git commands to generate.