]> git.proxmox.com Git - mirror_zfs.git/commit
Allow to control failfast
authorMariusz Zaborski <mariusz.zaborski@klarasystems.com>
Thu, 10 Nov 2022 21:37:12 +0000 (22:37 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Nov 2022 21:37:12 +0000 (13:37 -0800)
commit16f0fdadddcc7562ddf475f496a434b9ac94b0f7
tree79bdd273de7140b74a55a1425bdfd55abf51c3a1
parent945b407486a0072ec7dd117a0bde2f72d52eb445
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 <behlendorf1@llnl.gov>
Co-authored-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Mariusz Zaborski <mariusz.zaborski@klarasystems.com>
Sponsored-by: Seagate Technology LLC
Submitted-by: Klara, Inc.
Closes #14056
include/os/linux/kernel/linux/blkdev_compat.h
include/sys/fs/zfs.h
include/sys/vdev_impl.h
lib/libzfs/libzfs.abi
man/man4/zfs.4
man/man7/vdevprops.7
module/os/linux/zfs/vdev_disk.c
module/zcommon/zpool_prop.c
module/zfs/vdev.c