diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-10-26 08:09:46 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-11-09 16:52:41 -0800 |
commit | e3a7dfadd027458955f0783ba19d99c096b1b572 (patch) | |
tree | 38aa13bc9bee7ab7b5c36c2cef879bdeeec2a052 /fs | |
parent | 23c8301ad483e9453a86dca14a6f729e5bc03885 (diff) |
NFSv4: The link() operation should return any delegation on the file
commit 9a3936aac133037f65124fcb2d676a6c201a90a4 upstream.
Otherwise, we have to wait for the server to recall it.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 23f9a83c3c9..e195f67e401 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1526,6 +1526,8 @@ nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) old_dentry->d_parent->d_name.name, old_dentry->d_name.name, dentry->d_parent->d_name.name, dentry->d_name.name); + nfs_inode_return_delegation(inode); + d_drop(dentry); error = NFS_PROTO(dir)->link(inode, dir, &dentry->d_name); if (error == 0) { |