-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2691,7 +2691,7 @@ zil_commit_waiter(zilog_t *zilog, zil_commit_waiter_t *zcw) | |
&zcw->zcw_lock, wakeup, USEC2NSEC(1), | ||
CALLOUT_FLAG_ABSOLUTE); | ||
|
||
if (timeleft >= 0 || zcw->zcw_done) | ||
if (timeleft != -1 || zcw->zcw_done) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lundman
Author
Contributor
|
||
continue; | ||
|
||
timedout = B_TRUE; | ||
|
AFAICT, the magic -1 number only means 'timeout' in the user-space version of cv_timedwait_hires(), and not (at least for the freebsd spl) the kernel versions of cv_timedwait_hires().
So I'm a bit worried that this is incorrect on some (or all ;) ) platforms, and is equivalent to just removing the 'timeleft' comparison completely...