Skip to content

Commit

Permalink
cgroups: Fix a lockdep warning at cgroup removal
Browse files Browse the repository at this point in the history
Commit 2fd6b7f ("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>
  • Loading branch information
Li Zefan authored and Nick Piggin committed Jan 14, 2011
1 parent 7b9337a commit 3ec762a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ec762a

Please sign in to comment.