diff options
| author | Louis Rilling <[email protected]> | 2008-07-04 14:56:06 +0000 |
|---|---|---|
| committer | Mark Fasheh <[email protected]> | 2008-07-31 23:21:13 +0000 |
| commit | 2e2ce171c3ba6f2753fb1fd2706b63683394da2d (patch) | |
| tree | b3b75b6b140ab6807754fd500c5a55b0cb7324f8 /Documentation/filesystems/configfs/configfs_example_macros.c | |
| parent | [PATCH] configfs: Prevent userspace from creating new entries under attaching... (diff) | |
| download | kernel-2e2ce171c3ba6f2753fb1fd2706b63683394da2d.tar.gz kernel-2e2ce171c3ba6f2753fb1fd2706b63683394da2d.zip | |
[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 <[email protected]>
Signed-off-by: Joel Becker <[email protected]>
Signed-off-by: Mark Fasheh <[email protected]>
Diffstat (limited to 'Documentation/filesystems/configfs/configfs_example_macros.c')
0 files changed, 0 insertions, 0 deletions
