summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2013-04-10 01:13:20 +0200
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2013-05-02 20:41:05 +0200
commit159b67d7aefe3902df91075be5d80943c1570aa8 (patch)
tree8c830202c7bc95727ecfc4e6dace6a5d8f4a1ea8 /include
parentNVMe: Split non-mergeable bio requests (diff)
downloadlinux-159b67d7aefe3902df91075be5d80943c1570aa8.tar.xz
linux-159b67d7aefe3902df91075be5d80943c1570aa8.zip
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')
-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;
};