From: Brian Behlendorf Date: Wed, 17 Oct 2012 15:47:07 +0000 (-0700) Subject: Merge branch 'condvar' X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=82f46731fd5a9eef4f87530e94922664b58a6138;p=zfs.git Merge branch 'condvar' Auditing the code to verify that all instances of cv_signal() and cv_broadcast() are called under the proper associated mutex turned up several races. None of these have been conclusively seen in the wild but the following patch set resolves them. For reference, from the cv_signal(9F) man page: cv_signal() signals the condition and wakes one blocked thread. All blocked threads can be unblocked by calling cv_broadcast(). You must acquire the mutex passed into cv_wait() before calling cv_signal() or cv_broadcast() Signed-off-by: Brian Behlendorf Closes #1048 --- 82f46731fd5a9eef4f87530e94922664b58a6138