summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2021-04-07 19:23:57 -0400
committerBrian Behlendorf <[email protected]>2021-04-14 13:19:49 -0700
commit7822c01eb6b7d3d6a20e1a733747050ed9d7ddcb (patch)
treed7430c06664d011ba5adf26ad371b3c5e6f94907 /include/sys
parent96e15d29fab03e2876654c42702b81d3b0b14303 (diff)
Ratelimit deadman zevents as with delay zevents
Just as delay zevents can flood the zevent pipe when a vdev becomes unresponsive, so do the deadman zevents. Ratelimit deadman zevents according to the same tunable as for delay zevents. Enable deadman tests on FreeBSD and add a test for deadman event ratelimiting. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Don Brady <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #11786
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/vdev_impl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sys/vdev_impl.h b/include/sys/vdev_impl.h
index 6c3295353..3cfde40a7 100644
--- a/include/sys/vdev_impl.h
+++ b/include/sys/vdev_impl.h
@@ -458,10 +458,11 @@ struct vdev {
kmutex_t vdev_probe_lock; /* protects vdev_probe_zio */
/*
- * We rate limit ZIO delay and ZIO checksum events, since they
+ * We rate limit ZIO delay, deadman, and checksum events, since they
* can flood ZED with tons of events when a drive is acting up.
*/
zfs_ratelimit_t vdev_delay_rl;
+ zfs_ratelimit_t vdev_deadman_rl;
zfs_ratelimit_t vdev_checksum_rl;
};