[PATCH] peterz
Chris Wilson
chris at chris-wilson.co.uk
Tue Oct 27 12:36:26 UTC 2020
---
kernel/locking/lockdep.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index e4f0d8d7ff42..296bdd218317 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -4411,7 +4411,9 @@ static int mark_lock(struct task_struct *curr, struct held_lock *this,
break;
case LOCK_USED:
- debug_atomic_dec(nr_unused_locks);
+ case LOCK_USED_READ:
+ if ((hlock_class(this)->usage_mask & (LOCKF_USED|LOCKF_USED_READ)) == new_mask)
+ debug_atomic_dec(nr_unused_locks);
break;
default:
--
2.20.1
More information about the Intel-gfx-trybot
mailing list