HomeFreeBSD

Condition variable usage, zp->r_{rd,wr}_cv

Description

Condition variable usage, zp->r_{rd,wr}_cv

The following incorrect usage of cv_broadcast() was caught by
code inspection. The cv_broadcast() function must be called
under the associated mutex to preventing racing with cv_wait().

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Oct 15 2012, 8:41 PM
Parents
rG8c0712fd88d3: Condition variable usage, zilog->zl_cv_batch
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGa298dbde92c6: Condition variable usage, zp->r_{rd,wr}_cv (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Oct 15 2012, 11:02 PM