mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ANDROID: sdcardfs: Use spin_lock_nested
Signed-off-by: Daniel Rosenberg <drosen@google.com> Bug: 36007653 Change-Id: I805d5afec797669679853fb2bb993ee38e6276e4
This commit is contained in:
parent
9917de6f14
commit
280a7d21b7
1 changed files with 2 additions and 2 deletions
|
@ -76,10 +76,10 @@ static int sdcardfs_d_revalidate(struct dentry *dentry, struct nameidata *nd)
|
|||
|
||||
if (dentry < lower_dentry) {
|
||||
spin_lock(&dentry->d_lock);
|
||||
spin_lock(&lower_dentry->d_lock);
|
||||
spin_lock_nested(&lower_dentry->d_lock, DENTRY_D_LOCK_NESTED);
|
||||
} else {
|
||||
spin_lock(&lower_dentry->d_lock);
|
||||
spin_lock(&dentry->d_lock);
|
||||
spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
|
||||
}
|
||||
|
||||
if (dentry->d_name.len != lower_dentry->d_name.len) {
|
||||
|
|
Loading…
Reference in a new issue