NVMe: Make IO timeout a module parameter
Subsystems (2)
PATCH 1/1 NVMe: Make IO timeout a module parameter
Signed-off-by Keith Busch <keith.busch at intel.com>
--- drivers/block/nvme-core.c | 5 +++++ include/linux/nvme.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-)
drivers/block/nvme-core.c +5 -0
@@ -50,6 +50,11 @@#define CQ_SIZE (depth) (depth * sizeof(struct nvme_completion))#define ADMIN_TIMEOUT (60 * HZ) +ushort io_timeout =5 ; +module_param (io_timeout, ushort,0644 ); +MODULE_PARM_DESC (io_timeout, +"timeout in seconds for io submitted to h/w queue" ); +static int nvme_major;module_param (nvme_major, int,0 );
include/linux/nvme.h +2 -1
@@ -66,7 +66,8 @@ enum {#define NVME_VS (major, minor) (major << 16 | minor) -#define NVME_IO_TIMEOUT (5 * HZ) +extern ushort io_timeout; +#define NVME_IO_TIMEOUT (io_timeout * HZ)/* * Represents an NVM Express device. Each nvme_dev is a PCI function.
Signature · 1 line
1.7.10.4