nfsd: add tracepoint in mark_client_expired_locked
[linux-2.6-block.git] / fs / nfsd / nfs4state.c
index bd81217ada7f7737a23d89da0658ca67d51cf8e6..66f9a4f031a4d77344d1c1420ca09e95033c948d 100644 (file)
@@ -2347,7 +2347,11 @@ unhash_client(struct nfs4_client *clp)
 
 static __be32 mark_client_expired_locked(struct nfs4_client *clp)
 {
-       if (atomic_read(&clp->cl_rpc_users))
+       int users = atomic_read(&clp->cl_rpc_users);
+
+       trace_nfsd_mark_client_expired(clp, users);
+
+       if (users)
                return nfserr_jukebox;
        unhash_client_locked(clp);
        return nfs_ok;