Skip to content

Commit

Permalink
cv_wait to use literal waiters instead of address
Browse files Browse the repository at this point in the history
Since address would never == 1, the broadcast would never clear
and txg would continuously sync.
  • Loading branch information
lundman committed Jan 17, 2019
1 parent c06902d commit 34d0565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZFSin/spl/module/spl/spl-condvar.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ spl_cv_wait(kcondvar_t *cvp, kmutex_t *mp, int flags, const char *msg)
// KeAcquireSpinLock(&cvp->waiters_count_lock, &oldIrq);
// If last listener, clear BROADCAST event. (Even if it was SIGNAL
// overclearing will not hurt?)
if (&cvp->waiters_count == 1)
if (cvp->waiters_count == 1)
KeClearEvent(&cvp->kevent[CV_BROADCAST]);

atomic_dec_32(&cvp->waiters_count);
Expand Down

0 comments on commit 34d0565

Please sign in to comment.