- Check LO_DUPOK as well as LOP_DUPOK when determining whether we should
warn about duplicate acquires. Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
5310acaed0
commit
b29bfc6efa
@ -791,7 +791,8 @@ witness_checkorder(struct lock_object *lock, int flags, const char *file,
|
||||
lock1 = &(*lock_list)->ll_children[(*lock_list)->ll_count - 1];
|
||||
w1 = lock1->li_lock->lo_witness;
|
||||
if (w1 == w) {
|
||||
if (w->w_same_squawked || (lock->lo_flags & LO_DUPOK))
|
||||
if (w->w_same_squawked || (lock->lo_flags & LO_DUPOK) ||
|
||||
(flags & LOP_DUPOK))
|
||||
return;
|
||||
w->w_same_squawked = 1;
|
||||
printf("acquiring duplicate lock of same type: \"%s\"\n",
|
||||
|
Loading…
Reference in New Issue
Block a user