mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 11:40:25 +03:00
Restore CALLOUT_FLAG_ABSOLUTE in cv_timedwait_hires
In 39cd90e
, I mistakenly disabled the ability of using absolute expire time in
cv_timedwait_hires. I don't quite sure why I did that, so let's restore it.
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Issue #553
This commit is contained in:
parent
fdbc1ba99d
commit
872e0cc9c7
@ -311,9 +311,8 @@ cv_timedwait_hires_common(kcondvar_t *cvp, kmutex_t *mp, hrtime_t tim, hrtime_t
|
||||
tim = (tim / res) * res;
|
||||
}
|
||||
|
||||
ASSERT(!(flag & CALLOUT_FLAG_ABSOLUTE));
|
||||
/* get abs expire time */
|
||||
tim += gethrtime();
|
||||
if (!(flag & CALLOUT_FLAG_ABSOLUTE))
|
||||
tim += gethrtime();
|
||||
|
||||
return (__cv_timedwait_hires(cvp, mp, tim, state));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user