Condition variable usage, zp->r_{rd,wr}_cv
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 15 Oct 2012 20:41:44 +0000 (13:41 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 15 Oct 2012 23:02:03 +0000 (16:02 -0700)
commita298dbde92c68022a06ef51f2bb559b0975e4920
tree0ee40606a18abd4aed4c86bdde028a2a1a5cbd03
parent8c0712fd88d3cf60dc9db5392b005583d540dc69
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>
module/zfs/zfs_rlock.c