]> git.proxmox.com Git - mirror_zfs.git/commit
Use correct macro for hz in mmp.c
authorOlaf Faaland <faaland1@llnl.gov>
Mon, 24 Jul 2017 18:22:10 +0000 (11:22 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 24 Jul 2017 18:22:10 +0000 (11:22 -0700)
commitb6e5c40382a52206f48cb26cc20ed85294e1b0a9
treedd6385e52f9d3d524cb19bb5547482be1c70160d
parent802ae562ed817af978e2636806db1952d29ee86d
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
module/zfs/mmp.c