diff options
author | Keith Busch <keith.busch@intel.com> | 2012-07-26 13:29:57 -0400 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2012-07-26 13:43:20 -0400 |
commit | 8fc23e032debd682f5ba9fc524a5846c10d2c522 (patch) | |
tree | b940a216734f2c947cfae5ac9a80b45a86c506e3 /include | |
parent | a42ceccef0c43b46ff6bc1b12a7c1076ef243df1 (diff) |
NVMe: Set block queue max sectors
Set the max hw sectors in a namespace's request queue if the nvme device
has a max data transfer size.
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 9490a00529f4..8c71d2004c6d 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h | |||
@@ -37,6 +37,7 @@ struct nvme_bar { | |||
37 | 37 | ||
38 | #define NVME_CAP_TIMEOUT(cap) (((cap) >> 24) & 0xff) | 38 | #define NVME_CAP_TIMEOUT(cap) (((cap) >> 24) & 0xff) |
39 | #define NVME_CAP_STRIDE(cap) (((cap) >> 32) & 0xf) | 39 | #define NVME_CAP_STRIDE(cap) (((cap) >> 32) & 0xf) |
40 | #define NVME_CAP_MPSMIN(cap) (((cap) >> 48) & 0xf) | ||
40 | 41 | ||
41 | enum { | 42 | enum { |
42 | NVME_CC_ENABLE = 1 << 0, | 43 | NVME_CC_ENABLE = 1 << 0, |