aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/nvme-core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
index 872d8e42d008..1a911067061c 100644
--- a/drivers/block/nvme-core.c
+++ b/drivers/block/nvme-core.c
@@ -48,12 +48,16 @@
48#define SQ_SIZE(depth) (depth * sizeof(struct nvme_command)) 48#define SQ_SIZE(depth) (depth * sizeof(struct nvme_command))
49#define CQ_SIZE(depth) (depth * sizeof(struct nvme_completion)) 49#define CQ_SIZE(depth) (depth * sizeof(struct nvme_completion))
50#define ADMIN_TIMEOUT (60 * HZ) 50#define ADMIN_TIMEOUT (60 * HZ)
51#define IOD_TIMEOUT (4 * NVME_IO_TIMEOUT) 51#define IOD_TIMEOUT (retry_time * HZ)
52 52
53unsigned char io_timeout = 30; 53unsigned char io_timeout = 30;
54module_param(io_timeout, byte, 0644); 54module_param(io_timeout, byte, 0644);
55MODULE_PARM_DESC(io_timeout, "timeout in seconds for I/O"); 55MODULE_PARM_DESC(io_timeout, "timeout in seconds for I/O");
56 56
57static unsigned char retry_time = 30;
58module_param(retry_time, byte, 0644);
59MODULE_PARM_DESC(retry_time, "time in seconds to retry failed I/O");
60
57static int nvme_major; 61static int nvme_major;
58module_param(nvme_major, int, 0); 62module_param(nvme_major, int, 0);
59 63