mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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:
parent
24deed1aaa
commit
c141c242ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue