Reschedule the 'deadman' callout after handling, this makes our

code behave more like it is on Solaris.

Reported by:	avg
Reviewed by:	avg, mav (but bugs are mine)

Differential Revision: https://phabric.freebsd.org/D457
This commit is contained in:
Xin LI 2014-07-29 06:57:13 +00:00
parent 15fc287383
commit 343c95a24e

View File

@ -570,6 +570,12 @@ spa_deadman(void *arg)
++spa->spa_deadman_calls);
if (zfs_deadman_enabled)
vdev_deadman(spa->spa_root_vdev);
#ifdef __FreeBSD__
#ifdef _KERNEL
callout_schedule(&spa->spa_deadman_cycid,
hz * zfs_deadman_checktime_ms / MILLISEC);
#endif
#endif
}
/*