1. 24 2月, 2010 2 次提交
  2. 23 2月, 2010 25 次提交
  3. 22 2月, 2010 7 次提交
  4. 21 2月, 2010 5 次提交
  5. 20 2月, 2010 1 次提交
    • D
      CacheFiles: Fix a race in cachefiles_delete_object() vs rename · 8f9941ae
      David Howells 提交于
      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: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      8f9941ae