Commit 9d43cf64 authored by Keith Busch's avatar Keith Busch Committed by Matthew Wilcox

NVMe: Make admin timeout a module parameter

Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
[made admin_timeout static]
Signed-off-by: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent 61e4ce08
...@@ -47,9 +47,13 @@ ...@@ -47,9 +47,13 @@
#define NVME_Q_DEPTH 1024 #define NVME_Q_DEPTH 1024
#define SQ_SIZE(depth) (depth * sizeof(struct nvme_command)) #define SQ_SIZE(depth) (depth * sizeof(struct nvme_command))
#define CQ_SIZE(depth) (depth * sizeof(struct nvme_completion)) #define CQ_SIZE(depth) (depth * sizeof(struct nvme_completion))
#define ADMIN_TIMEOUT (60 * HZ) #define ADMIN_TIMEOUT (admin_timeout * HZ)
#define IOD_TIMEOUT (retry_time * HZ) #define IOD_TIMEOUT (retry_time * HZ)
static unsigned char admin_timeout = 60;
module_param(admin_timeout, byte, 0644);
MODULE_PARM_DESC(admin_timeout, "timeout in seconds for admin commands");
unsigned char io_timeout = 30; unsigned char io_timeout = 30;
module_param(io_timeout, byte, 0644); module_param(io_timeout, byte, 0644);
MODULE_PARM_DESC(io_timeout, "timeout in seconds for I/O"); MODULE_PARM_DESC(io_timeout, "timeout in seconds for I/O");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment