diff options
author | Prakash Surya <[email protected]> | 2023-06-30 11:34:05 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-06-30 11:34:05 -0700 |
commit | 945e39fc3a34dbffb9a630a99ae523f2e03e314b (patch) | |
tree | f3fecc68c0ffa998c7592ba6b8ed01f3ce7cda54 /module/os | |
parent | ac8ae18d2255eab48a77e3fa4e9e6e3230bde015 (diff) |
Enable tuning of ZVOL open timeout value
The default timeout for ZVOL opens may not be sufficient for all cases,
so we should enable the value to be more easily tuned to account for
systems where the default value is insufficient.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Matthew Ahrens <[email protected]>
Signed-off-by: Prakash Surya <[email protected]>
Closes #15023
Diffstat (limited to 'module/os')
-rw-r--r-- | module/os/linux/zfs/zvol_os.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/module/os/linux/zfs/zvol_os.c b/module/os/linux/zfs/zvol_os.c index cdf32c78b..38bc8e2c4 100644 --- a/module/os/linux/zfs/zvol_os.c +++ b/module/os/linux/zfs/zvol_os.c @@ -54,7 +54,7 @@ static unsigned int zvol_prefetch_bytes = (128 * 1024); static unsigned long zvol_max_discard_blocks = 16384; #ifndef HAVE_BLKDEV_GET_ERESTARTSYS -static const unsigned int zvol_open_timeout_ms = 1000; +static unsigned int zvol_open_timeout_ms = 1000; #endif static unsigned int zvol_threads = 0; @@ -1612,4 +1612,9 @@ MODULE_PARM_DESC(zvol_blk_mq_blocks_per_thread, "Process volblocksize blocks per thread"); #endif +#ifndef HAVE_BLKDEV_GET_ERESTARTSYS +module_param(zvol_open_timeout_ms, uint, 0644); +MODULE_PARM_DESC(zvol_open_timeout_ms, "Timeout for ZVOL open retries"); +#endif + /* END CSTYLED */ |