From: Benny Halevy Subject: [RFC 01/11] nfsd: introduce nfs4_client state Date: Wed, 16 Dec 2009 19:40:34 +0200 Message-ID: <1260985234-21375-1-git-send-email-bhalevy@panasas.com> References: <4B291B4C.3060603@panasas.com> Cc: linux-nfs@vger.kernel.org, pnfs@linux-nfs.org, Benny Halevy To: " J. Bruce Fields" Return-path: Received: from daytona.panasas.com ([67.152.220.89]:40179 "EHLO daytona.int.panasas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1762610AbZLPRkg (ORCPT ); Wed, 16 Dec 2009 12:40:36 -0500 In-Reply-To: <4B291B4C.3060603@panasas.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: Signed-off-by: Benny Halevy --- fs/nfsd/state.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index fefeae2..7e67eca 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -186,6 +186,13 @@ struct nfsd4_sessionid { #define HEXDIR_LEN 33 /* hex version of 16 byte md5 of cl_name plus '\0' */ +/* nfs4_client states */ +enum nfs4_client_state { + CL_STATE_NORMAL, + CL_STATE_RENEW, + CL_STATE_EXPIRED, +}; + /* * struct nfs4_client - one per client. Clientids live here. * o Each nfs4_client is hashed by clientid. @@ -214,6 +221,7 @@ struct nfs4_client { nfs4_verifier cl_confirm; /* generated by server */ struct nfs4_cb_conn cl_cb_conn; /* callback info */ atomic_t cl_count; /* ref count */ + atomic_t cl_state; /* renew / expiry state */ u32 cl_firststate; /* recovery dir creation */ /* for nfs41 */ -- 1.6.5.1