From: Louis Rilling Date: Fri, 4 Jul 2008 14:56:06 +0000 (+0200) Subject: [PATCH] configfs: Lock new directory inodes before removing on cleanup after failure X-Git-Tag: v2.6.27-rc2~96^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e2ce171c3ba6f2753fb1fd2706b63683394da2d;p=pandora-kernel.git [PATCH] configfs: Lock new directory inodes before removing on cleanup after failure Once a new configfs directory is created by configfs_attach_item() or configfs_attach_group(), a failure in the remaining initialization steps leads to removing a directory which inode the VFS may have already accessed. This commit adds the necessary inode locking to safely remove configfs directories while cleaning up after a failure. As an advantage, the locking rules of populate_groups() and detach_groups() become the same: the caller must have the group's inode mutex locked. Signed-off-by: Louis Rilling Signed-off-by: Joel Becker Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed