]> git.proxmox.com Git - mirror_zfs.git/commit
Detect long config lock acquisition in mmp
authorOlaf Faaland <faaland1@llnl.gov>
Wed, 21 Feb 2018 01:33:51 +0000 (17:33 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 6 Mar 2018 23:14:39 +0000 (15:14 -0800)
commit14c240cede5b38a761deedc2e23821a3f983da00
tree0633ad7a3a9bff8c2dca7e45f4c6d078f825862e
parentc7b55e71b0c24b836f8de56554cd1b0270c363ff
Detect long config lock acquisition in mmp

If something holds the config lock as a writer for too long, MMP will
fail to issue MMP writes in a timely manner.  This will result either in
the pool being suspended, or in an extreme case, in the pool not being
protected.

If the time to acquire the config lock exceeds 1/10 of the minimum
zfs_multihost_interval, report it in the zfs debug log.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #7212
module/zfs/mmp.c