[RFC tip/locking/lockdep v6 10/20] lockdep: Adjust check_redundant() for recursive read change

2018-04-11 Thread Boqun Feng
check_redundant() will report redundancy if it finds a path could replace the about-to-add dependency in the BFS search. With recursive read lock changes, we certainly need to change the match function for the check_redundant(), because the path needs to match not only the lock class but also the

[RFC tip/locking/lockdep v6 10/20] lockdep: Adjust check_redundant() for recursive read change

2018-04-11 Thread Boqun Feng
check_redundant() will report redundancy if it finds a path could replace the about-to-add dependency in the BFS search. With recursive read lock changes, we certainly need to change the match function for the check_redundant(), because the path needs to match not only the lock class but also the