1. 01 8月, 2011 19 次提交
  2. 31 7月, 2011 2 次提交
  3. 26 7月, 2011 2 次提交
    • T
      NFSv4: Don't use the delegation->inode in nfs_mark_return_delegation() · ed1e6211
      Trond Myklebust 提交于
      nfs_mark_return_delegation() is usually called without any locking, and
      so it is not safe to dereference delegation->inode. Since the inode is
      only used to discover the nfs_client anyway, it makes more sense to
      have the callers pass a valid pointer to the nfs_server as a parameter.
      Reported-by: NIan Kent <raven@themaw.net>
      Cc: stable@kernel.org
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      ed1e6211
    • J
      nfs: don't use d_move in nfs_async_rename_done · 73ca1001
      Jeff Layton 提交于
      If the task that initiated the sillyrename ends up being killed by a
      fatal signal, then it will eventually return back to userspace and end
      up releasing the i_mutex. d_move however needs to be done while holding
      the i_mutex.
      
      Instead of using d_move here, just unhash the old and new dentries to
      prevent them from being found by lookups. With this change though, the
      dentries are now incorrect post-rename and do not reflect the actual
      name of the file on the server. I'm proceeding under the assumption
      that since they are unhashed that this isn't really a problem.
      
      In order for the sillydelete to still work though, the dname must be
      copied earlier when setting up the sillydelete info, and the name must
      be recopied if the sillydelete info has to be moved to a new dentry.
      Reported-by: NAl Viro <viro@ZenIV.linux.org.uk>
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      73ca1001
  4. 23 7月, 2011 10 次提交
  5. 22 7月, 2011 5 次提交
  6. 21 7月, 2011 2 次提交