Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Restore CALLOUT_FLAG_ABSOLUTE in cv_timedwait_hires
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tim Chase <[email protected]>
Issue #553
  • Loading branch information
Chunwei Chen authored and behlendorf committed May 24, 2016
1 parent fdbc1ba commit 872e0cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions module/spl/spl-condvar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 872e0cc

Please sign in to comment.