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

Commit d7fdcfe0 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

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: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Cc: Alexandros Batsakis <batsakis@netapp.com>
parent 18f82731
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -490,8 +490,8 @@ nfsd4_cb_recall(struct nfs4_delegation *dp)
	 * Success or failure, now we're either waiting for lease expiration
	 * or deleg_return.
	 */
	nfs4_lock_state();
	put_nfs4_client(clp);
	nfs4_lock_state();
	nfs4_put_delegation(dp);
	nfs4_unlock_state();
	return;