diff options
author | Stephan Uphoff <ups@FreeBSD.org> | 2004-10-12 16:28:18 +0000 |
---|---|---|
committer | Stephan Uphoff <ups@FreeBSD.org> | 2004-10-12 16:28:18 +0000 |
commit | b9a80acadb3b726980cd23aab5beaef7d4b54bb6 (patch) | |
tree | 557753d9910334e8e4bf457f2450c7311fbc39ca | |
parent | f49f4f366b6ffd16a3df5c3b4b19ac9407997170 (diff) | |
download | src-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.c | 9 |
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. */ |