From 99e755d653aec351c43a636b5734d1de3476d233 Mon Sep 17 00:00:00 2001 From: DeHackEd Date: Mon, 5 Aug 2019 14:35:47 -0400 Subject: 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 Reviewed-by: Tony Hutter Signed-off-by: DHE Closes #9091 --- module/zfs/fm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'module/zfs/fm.c') 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; -- cgit v1.2.3