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.
This commit is contained in:
John Baldwin 2003-03-04 22:34:07 +00:00
parent 24deed1aaa
commit c141c242ac

View file

@ -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