aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2010-06-10 20:04:44 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2010-06-10 20:04:44 +0000
commita2e21392f51d360878582370d548a42c57c23373 (patch)
tree0cb16a4454db6f6c7d2ff0c43336bf6929258c63 /sys
parent5753d036712f83680f3356229895cb9b4c0fdd1a (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_sx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c
index 0a484a1d05df..8ac4883d9095 100644
--- a/sys/kern/kern_sx.c
+++ b/sys/kern/kern_sx.c
@@ -508,7 +508,7 @@ _sx_xlock_hard(struct sx *sx, uintptr_t tid, int opts, const char *file,
* running or the state of the lock changes.
*/
x = sx->sx_lock;
- if ((sx->lock_object.lo_flags & SX_NOADAPTIVE) != 0) {
+ if ((sx->lock_object.lo_flags & SX_NOADAPTIVE) == 0) {
if ((x & SX_LOCK_SHARED) == 0) {
x = SX_OWNER(x);
owner = (struct thread *)x;