Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a3936aa authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: The link() operation should return any delegation on the file



Otherwise, we have to wait for the server to recall it.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 141aeb9f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1536,6 +1536,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) {