Condition variable usage, zilog->zl_cv_batch
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 15 Oct 2012 20:40:07 +0000 (13:40 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 15 Oct 2012 23:01:58 +0000 (16:01 -0700)
commit8c0712fd88d3cf60dc9db5392b005583d540dc69
treefb6665b1c20e9808e85cf584e2b363175944ba8b
parent99db9bfde70440475a37c0e1b985efbec4850a8c
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>
module/zfs/zil.c