diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-04 22:34:07 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-04 22:34:07 +0000 |
commit | 45fcac94f475f1d18d50dde4f72eb51ee4abddcc (patch) | |
tree | d7bb9932feb58d2f3d294a55885e629ddb8b7ba9 /sys/kern/subr_witness.c | |
parent | bfd7640850e7f3731187d9e8ea20d26a62479418 (diff) | |
download | FreeBSD-src-45fcac94f475f1d18d50dde4f72eb51ee4abddcc.zip FreeBSD-src-45fcac94f475f1d18d50dde4f72eb51ee4abddcc.tar.gz |
Bah, fix a bogon in the last commit: get the sense of a compare test right
so that we allow a sleepable lock to be acquired with Giant held rather
than allowing a sleepable lock to be acquired with anything but Giant held.
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r-- | sys/kern/subr_witness.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index f12ff82..d4315de 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -675,7 +675,7 @@ witness_lock(struct lock_object *lock, int flags, const char *file, int line) * is Giant, then skip it. */ if ((lock->lo_flags & LO_SLEEPABLE) != 0 && - lock1->li_lock != &Giant.mtx_object) + lock1->li_lock == &Giant.mtx_object) continue; /* * If we are locking a sleepable lock and this lock |