aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/fm.c
diff options
context:
space:
mode:
authorDeHackEd <[email protected]>2019-08-05 14:35:47 -0400
committerMatthew Ahrens <[email protected]>2019-08-05 11:35:47 -0700
commit99e755d653aec351c43a636b5734d1de3476d233 (patch)
treeb6153813d8fbb83ca8aa8f6b1f2740f9a8a570e9 /module/zfs/fm.c
parent8098465558184612265afeaf72d98369b77f4acc (diff)
Don't wakeup unnecessarily in 'zpool events -f'
ZED can prevent CPU's from properly sleeping. Rather than periodically waking up in the zevents code, just go to sleep and wait for a wakeup. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: DHE <[email protected]> Closes #9091
Diffstat (limited to 'module/zfs/fm.c')
-rw-r--r--module/zfs/fm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/zfs/fm.c b/module/zfs/fm.c
index cc5225dcb..0a0fc79bd 100644
--- a/module/zfs/fm.c
+++ b/module/zfs/fm.c
@@ -683,8 +683,7 @@ zfs_zevent_wait(zfs_zevent_t *ze)
break;
}
- error = cv_timedwait_sig(&zevent_cv, &zevent_lock,
- ddi_get_lbolt() + MSEC_TO_TICK(10));
+ error = cv_wait_sig(&zevent_cv, &zevent_lock);
if (signal_pending(current)) {
error = SET_ERROR(EINTR);
break;