diff options
| author | Latchesar Ionkov <[email protected]> | 2007-04-23 14:41:11 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-04-24 08:23:08 -0700 |
| commit | c959df9f01cfb2f43b4d1f58631ee1e9c50541b6 (patch) | |
| tree | 79d8d52914ed1f8a96f124f267ebe44c1630e3b4 /include/linux/debugobjects.h | |
| parent | f51a5a9de86a948b9a30daab90fb003f51446dcd (diff) | |
v9fs: don't use primary fid when removing file
v9fs_insert uses v9fs_fid_lookup (which also locks the fid) to get the
primary fid associated with the dentry and destroys the v9fs_fid struct
after removing the file. If another process called v9fs_fid_lookup on the
same dentry, it may wait undefinitely for the fid's lock (as the struct is
freed).
This patch changes v9fs_remove to use a cloned fid, so the primary fid is
not locked and freed.
Signed-off-by: Latchesar Ionkov <[email protected]>
Cc: Eric Van Hensbergen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions