From: J. Bruce Fields Date: Sat, 21 Feb 2009 23:39:54 +0000 (-0800) Subject: nfsd4: put_nfs4_client does not require state lock X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d7fdcfe0aaaf6dffca6fa857bab374182fe7ca8b;p=linux-2.6-omap-h63xx.git 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 Cc: Alexandros Batsakis --- diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 3ddc9fb2e35..3fd7136321c 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -490,8 +490,8 @@ out_put_cred: * 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;