summaryrefslogtreecommitdiffstats
path: root/include/linux/nvme.h
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2013-04-09 17:13:20 -0600
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2013-05-02 14:41:05 -0400
commit159b67d7aefe3902df91075be5d80943c1570aa8 (patch)
tree8c830202c7bc95727ecfc4e6dace6a5d8f4a1ea8 /include/linux/nvme.h
parent427e97080196548557b288517537ab7eb48c309f (diff)
downloadlinux-159b67d7aefe3902df91075be5d80943c1570aa8.tar.gz
linux-159b67d7aefe3902df91075be5d80943c1570aa8.tar.xz
NVMe: Device specific stripe size handling
We have an nvme device that has a concept of a stripe size. IO requests that do not transfer data crossing a stripe boundary has greater performance compared to IO that does cross it. This patch sets the stripe size for the device if the device and vendor ids match one with this feature and splits IO requests that cross the stripe boundary. Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r--include/linux/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 9b6fba872f47..af29b0e0b092 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -536,6 +536,7 @@ struct nvme_dev {
char model[40];
char firmware_rev[8];
u32 max_hw_sectors;
+ u32 stripe_size;
u16 oncs;
};