mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
NFSv4: Try to return the delegation immediately when marked for return on close
Add a routine to return the delegation immediately upon close of the file if it was marked for return-on-close. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
0d10416797
commit
b7b7dac684
3 changed files with 35 additions and 0 deletions
|
@ -766,6 +766,7 @@ void nfs4_put_open_state(struct nfs4_state *state)
|
|||
list_del(&state->open_states);
|
||||
spin_unlock(&inode->i_lock);
|
||||
spin_unlock(&owner->so_lock);
|
||||
nfs4_inode_return_delegation_on_close(inode);
|
||||
iput(inode);
|
||||
nfs4_free_open_state(state);
|
||||
nfs4_put_state_owner(owner);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue