1
linux/fs/cachefiles
David Howells 8f9941aecc CacheFiles: Fix a race in cachefiles_delete_object() vs rename
cachefiles_delete_object() can race with rename.  It gets the parent directory
of the object it's asked to delete, then locks it - but rename may have changed
the object's parent between the get and the completion of the lock.

However, if such a circumstance is detected, we abandon our attempt to delete
the object - since it's no longer in the index key path, it won't be seen
again by lookups of that key.  The assumption is that cachefilesd may have
culled it by renaming it to the graveyard for later destruction.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2010-02-20 10:06:35 -05:00
..
bind.c switch cachefiles to kern_path() 2009-12-16 12:16:44 -05:00
daemon.c tree-wide: convert open calls to remove spaces to skip_spaces() lib function 2009-12-15 08:53:32 -08:00
interface.c CacheFiles: Don't log lookup/create failing with ENOBUFS 2009-11-19 18:12:08 +00:00
internal.h
Kconfig
key.c
main.c
Makefile
namei.c CacheFiles: Fix a race in cachefiles_delete_object() vs rename 2010-02-20 10:06:35 -05:00
proc.c
rdwr.c Untangling ima mess, part 2: deal with counters 2009-12-16 12:16:47 -05:00
security.c
xattr.c