mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
cgroups: Fix a lockdep warning at cgroup removal
Commit 2fd6b7f5
("fs: dcache scale subdirs") forgot to annotate a dentry
lock, which caused a lockdep warning.
Reported-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
This commit is contained in:
parent
7b9337aaf9
commit
3ec762ad8b
1 changed files with 1 additions and 1 deletions
|
@ -912,7 +912,7 @@ static void cgroup_d_remove_dir(struct dentry *dentry)
|
|||
|
||||
parent = dentry->d_parent;
|
||||
spin_lock(&parent->d_lock);
|
||||
spin_lock(&dentry->d_lock);
|
||||
spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
|
||||
list_del_init(&dentry->d_u.d_child);
|
||||
spin_unlock(&dentry->d_lock);
|
||||
spin_unlock(&parent->d_lock);
|
||||
|
|
Loading…
Reference in a new issue