diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2009-02-22 00:39:54 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-03-18 22:38:38 +0100 |
commit | d7fdcfe0aaaf6dffca6fa857bab374182fe7ca8b (patch) | |
tree | f53688b2496a98da148297972b4e27318810ec89 /fs/nfsd | |
parent | nfsd4: rename io_during_grace_disallowed (diff) | |
download | linux-d7fdcfe0aaaf6dffca6fa857bab374182fe7ca8b.tar.xz linux-d7fdcfe0aaaf6dffca6fa857bab374182fe7ca8b.zip |
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>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 3ddc9fb2e358..3fd7136321ca 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; |