mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-14 21:48:49 +00:00
nfsd4: put_nfs4_client does not require state lock
Since free_client() is guaranteed to only be called once, and to only touch the client structure itself (not any common data structures), it has no need for the state lock. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Cc: Alexandros Batsakis <batsakis@netapp.com>
This commit is contained in:
parent
18f82731b7
commit
d7fdcfe0aa
@ -490,8 +490,8 @@ out_put_cred:
|
|||||||
* Success or failure, now we're either waiting for lease expiration
|
* Success or failure, now we're either waiting for lease expiration
|
||||||
* or deleg_return.
|
* or deleg_return.
|
||||||
*/
|
*/
|
||||||
nfs4_lock_state();
|
|
||||||
put_nfs4_client(clp);
|
put_nfs4_client(clp);
|
||||||
|
nfs4_lock_state();
|
||||||
nfs4_put_delegation(dp);
|
nfs4_put_delegation(dp);
|
||||||
nfs4_unlock_state();
|
nfs4_unlock_state();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user