mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 08:48:48 +00:00
NFSv4: If a delegated open fails, ensure that we return the delegation
Unless of course the open fails due to permission issues. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
642ac54923
commit
b8e5c4c297
@ -658,6 +658,8 @@ out_err:
|
||||
}
|
||||
up_read(&nfsi->rwsem);
|
||||
up_read(&clp->cl_sem);
|
||||
if (err != -EACCES)
|
||||
nfs_inode_return_delegation(inode);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user