summaryrefslogtreecommitdiffstats
path: root/drivers/block/nvme-core.c
diff options
context:
space:
mode:
authorKeith Busch2014-04-04 19:43:36 +0200
committerMatthew Wilcox2014-04-10 23:04:38 +0200
commitb355084a891985d4cd0ca23b1a83366af2c4232d (patch)
tree3b819a5b20b3d752c900181afabaa06ae7f286dc /drivers/block/nvme-core.c
parentNVMe: CPU hot plug notification (diff)
downloadkernel-qcow2-linux-b355084a891985d4cd0ca23b1a83366af2c4232d.tar.gz
kernel-qcow2-linux-b355084a891985d4cd0ca23b1a83366af2c4232d.tar.xz
kernel-qcow2-linux-b355084a891985d4cd0ca23b1a83366af2c4232d.zip
NVMe: Make I/O timeout a module parameter
Increase the default timeout to 30 seconds to match SCSI. Signed-off-by: Keith Busch <keith.busch@intel.com> [use byte instead of ushort] Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'drivers/block/nvme-core.c')
-rw-r--r--drivers/block/nvme-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
index ce5a4f1a3950..7c57b1d955a1 100644
--- a/drivers/block/nvme-core.c
+++ b/drivers/block/nvme-core.c
@@ -50,6 +50,10 @@
#define CQ_SIZE(depth) (depth * sizeof(struct nvme_completion))
#define ADMIN_TIMEOUT (60 * HZ)
+unsigned char io_timeout = 30;
+module_param(io_timeout, byte, 0644);
+MODULE_PARM_DESC(io_timeout, "timeout in seconds for I/O");
+
static int nvme_major;
module_param(nvme_major, int, 0);