HomeFreeBSD

Condition variable usage, zevent_cv

Description

Condition variable usage, zevent_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:36 PM
Parents
rG6cb7ab069d90: Do not return /dev/loop-control in unused_loop_device
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG99db9bfde704: Condition variable usage, zevent_cv (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Oct 15 2012, 11:01 PM