diff options
author | Mariusz Zaborski <[email protected]> | 2022-11-10 22:37:12 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-11-10 13:37:12 -0800 |
commit | 16f0fdadddcc7562ddf475f496a434b9ac94b0f7 (patch) | |
tree | 79bdd273de7140b74a55a1425bdfd55abf51c3a1 /module/zcommon/zpool_prop.c | |
parent | 945b407486a0072ec7dd117a0bde2f72d52eb445 (diff) |
Allow to control failfast
Linux defaults to setting "failfast" on BIOs, so that the OS will not
retry IOs that fail, and instead report the error to ZFS.
In some cases, such as errors reported by the HBA driver, not
the device itself, we would wish to retry rather than generating
vdev errors in ZFS. This new property allows that.
This introduces a per vdev option to disable the failfast option.
This also introduces a global module parameter to define the failfast
mask value.
Reviewed-by: Brian Behlendorf <[email protected]>
Co-authored-by: Allan Jude <[email protected]>
Signed-off-by: Allan Jude <[email protected]>
Signed-off-by: Mariusz Zaborski <[email protected]>
Sponsored-by: Seagate Technology LLC
Submitted-by: Klara, Inc.
Closes #14056
Diffstat (limited to 'module/zcommon/zpool_prop.c')
-rw-r--r-- | module/zcommon/zpool_prop.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zcommon/zpool_prop.c b/module/zcommon/zpool_prop.c index 4737bd628..285b97909 100644 --- a/module/zcommon/zpool_prop.c +++ b/module/zcommon/zpool_prop.c @@ -420,6 +420,9 @@ vdev_prop_init(void) boolean_na_table, sfeatures); /* default index properties */ + zprop_register_index(VDEV_PROP_FAILFAST, "failfast", B_TRUE, + PROP_DEFAULT, ZFS_TYPE_VDEV, "on | off", "FAILFAST", boolean_table, + sfeatures); /* hidden properties */ zprop_register_hidden(VDEV_PROP_NAME, "name", PROP_TYPE_STRING, |