diff options
author | Andy Adamson <andros@netapp.com> | 2009-04-03 01:28:32 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-04-03 20:41:18 -0400 |
commit | 38eb76a54d803e6792816623651b1a9cb85f8d01 (patch) | |
tree | 090f34b2d92bd92637dabf0fc287cbf544c0cb38 /include/linux/nfsd | |
parent | ec6b5d7b5064fde27aee798b81107ea3a830de85 (diff) |
nfsd41: Add a create session replay cache
Replace the nfs4_client cl_seqid field with a single struct nfs41_slot used
for the create session replay cache.
The CREATE_SESSION slot sets the sl_session pointer to NULL. Otherwise, the
slot and it's replay cache are used just like the session slots.
Fix unconfirmed create_session replay response by initializing the
create_session slot sequence id to 0.
A future patch will set the CREATE_SESSION cache when a SEQUENCE operation
preceeds the CREATE_SESSION operation. This compound is currently only cached
in the session slot table.
Signed-off-by: Andy Adamson<andros@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[nfsd41: use bool inuse for slot state]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[nfsd41: revert portion of nfsd4_set_cache_entry]
Signed-off-by: Andy Adamson <andros@netpp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux/nfsd')
-rw-r--r-- | include/linux/nfsd/state.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index 692edf4c2e7c..f063df7ad134 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h | |||
@@ -190,7 +190,7 @@ struct nfs4_client { | |||
190 | 190 | ||
191 | /* for nfs41 */ | 191 | /* for nfs41 */ |
192 | struct list_head cl_sessions; | 192 | struct list_head cl_sessions; |
193 | u32 cl_seqid; /* seqid for create_session */ | 193 | struct nfsd4_slot cl_slot; /* create_session slot */ |
194 | u32 cl_exchange_flags; | 194 | u32 cl_exchange_flags; |
195 | struct nfs4_sessionid cl_sessionid; | 195 | struct nfs4_sessionid cl_sessionid; |
196 | }; | 196 | }; |