mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
NFSv4: Ensure that we don't reap a delegation that is being returned
Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
369d6b7f00
commit
b04b22f4ca
1 changed files with 7 additions and 5 deletions
|
|
@ -815,12 +815,14 @@ restart:
|
|||
inode = nfs_delegation_grab_inode(delegation);
|
||||
if (inode == NULL)
|
||||
continue;
|
||||
delegation = nfs_detach_delegation(NFS_I(inode),
|
||||
delegation, server);
|
||||
delegation = nfs_start_delegation_return_locked(NFS_I(inode));
|
||||
rcu_read_unlock();
|
||||
|
||||
if (delegation != NULL)
|
||||
nfs_free_delegation(delegation);
|
||||
if (delegation != NULL) {
|
||||
delegation = nfs_detach_delegation(NFS_I(inode),
|
||||
delegation, server);
|
||||
if (delegation != NULL)
|
||||
nfs_free_delegation(delegation);
|
||||
}
|
||||
iput(inode);
|
||||
goto restart;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue