diff options
Diffstat (limited to 'include/linux/nfsd/state.h')
-rw-r--r-- | include/linux/nfsd/state.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index a6e4a00fa392..baea7f1fdb4a 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h | |||
@@ -99,6 +99,39 @@ struct nfs4_callback { | |||
99 | struct rpc_clnt * cb_client; | 99 | struct rpc_clnt * cb_client; |
100 | }; | 100 | }; |
101 | 101 | ||
102 | struct nfsd4_slot { | ||
103 | bool sl_inuse; | ||
104 | u32 sl_seqid; | ||
105 | }; | ||
106 | |||
107 | struct nfsd4_session { | ||
108 | struct kref se_ref; | ||
109 | struct list_head se_hash; /* hash by sessionid */ | ||
110 | struct list_head se_perclnt; | ||
111 | u32 se_flags; | ||
112 | struct nfs4_client *se_client; /* for expire_client */ | ||
113 | struct nfs4_sessionid se_sessionid; | ||
114 | u32 se_fmaxreq_sz; | ||
115 | u32 se_fmaxresp_sz; | ||
116 | u32 se_fmaxresp_cached; | ||
117 | u32 se_fmaxops; | ||
118 | u32 se_fnumslots; | ||
119 | struct nfsd4_slot *se_slots; /* forward channel slots */ | ||
120 | }; | ||
121 | |||
122 | static inline void | ||
123 | nfsd4_put_session(struct nfsd4_session *ses) | ||
124 | { | ||
125 | extern void free_session(struct kref *kref); | ||
126 | kref_put(&ses->se_ref, free_session); | ||
127 | } | ||
128 | |||
129 | static inline void | ||
130 | nfsd4_get_session(struct nfsd4_session *ses) | ||
131 | { | ||
132 | kref_get(&ses->se_ref); | ||
133 | } | ||
134 | |||
102 | #define HEXDIR_LEN 33 /* hex version of 16 byte md5 of cl_name plus '\0' */ | 135 | #define HEXDIR_LEN 33 /* hex version of 16 byte md5 of cl_name plus '\0' */ |
103 | 136 | ||
104 | /* | 137 | /* |