Use correct macro for hz in mmp.c
Commit 379ca9c
Multi-modifier protection (MMP) used HZ to convert
nanoseconds to ticks for use with cv_timedwait() and ddi_get_lbolt().
The correct macro is hz, which is defined within the SPL for kernel
space, and within zfs_context.h for user space.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #6357
Closes #6360
This commit is contained in:
parent
802ae562ed
commit
b6e5c40382
|
@ -446,7 +446,7 @@ mmp_thread(spa_t *spa)
|
|||
CALLB_CPR_SAFE_BEGIN(&cpr);
|
||||
(void) cv_timedwait_sig(&mmp->mmp_thread_cv,
|
||||
&mmp->mmp_thread_lock, ddi_get_lbolt() +
|
||||
((next_time - gethrtime()) / (NANOSEC / HZ)));
|
||||
((next_time - gethrtime()) / (NANOSEC / hz)));
|
||||
CALLB_CPR_SAFE_END(&cpr, &mmp->mmp_thread_lock);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue