HomeFreeBSD

Update deadman operation to better align with upstream OpenZFS

Description

Update deadman operation to better align with upstream OpenZFS

The deadman in ZoL didn't behave quite as it did in upstream
OpenZFS. In addition to the 2 purposes for which OpenZFS used the
zfs_deadman_synctime_ms parameter, ZoL also used it to determine how
frequently the deadman would fire once it has been triggered.

This patch adds the zfs_deadman_checktime_ms parameter to control how
frequently the subsequent checks are performed.

The deadman is now disabled for suspended pools.

As had been the case, unlike upstream OpenZFS, ZoL will not panic when
a hung IO is detected.

The module parameter documentation has been upated to include the new
parameter and to better describe the operation of the deadmen.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #5695

Details

Provenance
Tim Chase <tim@chase2k.com>Authored on Jan 31 2017, 10:19 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 31 2017, 10:19 PM
Parents
rGe24548975ccd: OpenZFS 7745 - print error if lzc_* is called before libzfs_core_init
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGb81a3ddc3207: Update deadman operation to better align with upstream OpenZFS (authored by Tim Chase <tim@chase2k.com>).Jan 31 2017, 10:19 PM