diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2010-06-10 20:04:44 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2010-06-10 20:04:44 +0000 |
| commit | a2e21392f51d360878582370d548a42c57c23373 (patch) | |
| tree | 0cb16a4454db6f6c7d2ff0c43336bf6929258c63 /sys | |
| parent | 5753d036712f83680f3356229895cb9b4c0fdd1a (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_sx.c | 2 |
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; |
