aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Uphoff <ups@FreeBSD.org>2004-10-12 16:28:18 +0000
committerStephan Uphoff <ups@FreeBSD.org>2004-10-12 16:28:18 +0000
commitb9a80acadb3b726980cd23aab5beaef7d4b54bb6 (patch)
tree557753d9910334e8e4bf457f2450c7311fbc39ca
parentf49f4f366b6ffd16a3df5c3b4b19ac9407997170 (diff)
downloadsrc-b9a80acadb3b726980cd23aab5beaef7d4b54bb6.tar.gz
src-b9a80acadb3b726980cd23aab5beaef7d4b54bb6.zip
Force MUTEX_WAKE_ALL.
A race condition in single thread wakeup may break priority inheritance. Tested by: pho Reviewed by: jhb,julian Approved by: sam (mentor) MFC: ASAP
Notes
Notes: svn path=/head/; revision=136437
-rw-r--r--sys/kern/kern_mutex.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index eb345bff2d3f..012f3044a2c9 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -69,6 +69,15 @@ __FBSDID("$FreeBSD$");
#include <vm/vm.h>
#include <vm/vm_extern.h>
+/*
+ * Force MUTEX_WAKE_ALL for now.
+ * single thread wakeup needs fixes to avoid race conditions with
+ * priority inheritance.
+ */
+#ifndef MUTEX_WAKE_ALL
+#define MUTEX_WAKE_ALL
+#endif
+
/*
* Internal utility macros.
*/