mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] lockdep: annotate dcache
Teach special (recursive) locking code to the lock validator. Has no effect on non-lockdep kernels. Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Arjan van de Ven <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
13e83599d2
commit
a90b9c05df
2 changed files with 14 additions and 2 deletions
|
|
@ -1339,10 +1339,10 @@ void d_move(struct dentry * dentry, struct dentry * target)
|
|||
*/
|
||||
if (target < dentry) {
|
||||
spin_lock(&target->d_lock);
|
||||
spin_lock(&dentry->d_lock);
|
||||
spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
|
||||
} else {
|
||||
spin_lock(&dentry->d_lock);
|
||||
spin_lock(&target->d_lock);
|
||||
spin_lock_nested(&target->d_lock, DENTRY_D_LOCK_NESTED);
|
||||
}
|
||||
|
||||
/* Move the dentry to the target hash queue, if on different bucket */
|
||||
|
|
|
|||
Loading…
Reference in a new issue