HomeFreeBSD

Condition variable usage, zilog->zl_cv_batch

Description

Condition variable usage, zilog->zl_cv_batch

The following incorrect usage of cv_signal and cv_broadcast()
was caught by code inspection. The cv_signal and cv_broadcast()
functions 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:40 PM
Parents
rG99db9bfde704: Condition variable usage, zevent_cv
Branches
Unknown
Tags
Unknown

Event Timeline

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