[PATCH] recompute-chain-key

Chris Wilson chris at chris-wilson.co.uk
Wed Oct 28 17:38:45 UTC 2020


---
 kernel/locking/lockdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index 035f81b1cc87..f193f756e1e3 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -4831,7 +4831,7 @@ static int __lock_acquire(struct lockdep_map *lock, unsigned int subclass,
 	if (!validate_chain(curr, hlock, chain_head, chain_key))
 		return 0;
 
-	curr->curr_chain_key = chain_key;
+	curr->curr_chain_key = iterate_chain_key(chain_key, hlock_id(hlock));
 	curr->lockdep_depth++;
 	check_chain_key(curr);
 #ifdef CONFIG_DEBUG_LOCKDEP
-- 
2.20.1



More information about the Intel-gfx-trybot mailing list