diff options
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index ffb7bbad0638..b24d7027b83c 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -916,7 +916,7 @@ static void cgroup_d_remove_dir(struct dentry *dentry) | |||
916 | 916 | ||
917 | parent = dentry->d_parent; | 917 | parent = dentry->d_parent; |
918 | spin_lock(&parent->d_lock); | 918 | spin_lock(&parent->d_lock); |
919 | spin_lock(&dentry->d_lock); | 919 | spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED); |
920 | list_del_init(&dentry->d_u.d_child); | 920 | list_del_init(&dentry->d_u.d_child); |
921 | spin_unlock(&dentry->d_lock); | 921 | spin_unlock(&dentry->d_lock); |
922 | spin_unlock(&parent->d_lock); | 922 | spin_unlock(&parent->d_lock); |