diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-07-07 20:59:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-07 21:24:09 -0400 |
commit | 7fb64cee34f5dc743f697041717cafda8a94b5ac (patch) | |
tree | 5b4e7b67cff7d64a46024036d0033f0d3e05b857 | |
parent | bd9aac523b812d58e644fde5e59f5697fb9e3822 (diff) |
[PATCH] nfsd4: seqid comments
Add some comments on the use of so_seqid, in an attempt to avoid some of the
confusion outlined in the previous patch....
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 8 | ||||
-rw-r--r-- | include/linux/nfsd/state.h | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 5207068cde1a..1515c5b8096f 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -1210,10 +1210,10 @@ nfsd4_decode_compound(struct nfsd4_compoundargs *argp) | |||
1210 | save = resp->p; | 1210 | save = resp->p; |
1211 | 1211 | ||
1212 | /* | 1212 | /* |
1213 | * Routine for encoding the result of a | 1213 | * Routine for encoding the result of a "seqid-mutating" NFSv4 operation. This |
1214 | * "seqid-mutating" NFSv4 operation. This is | 1214 | * is where sequence id's are incremented, and the replay cache is filled. |
1215 | * where seqids are incremented, and the | 1215 | * Note that we increment sequence id's here, at the last moment, so we're sure |
1216 | * replay cache is filled. | 1216 | * we know whether the error to be returned is a sequence id mutating error. |
1217 | */ | 1217 | */ |
1218 | 1218 | ||
1219 | #define ENCODE_SEQID_OP_TAIL(stateowner) do { \ | 1219 | #define ENCODE_SEQID_OP_TAIL(stateowner) do { \ |
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index a84a3fa99be1..2d19431f47ea 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h | |||
@@ -203,7 +203,9 @@ struct nfs4_stateowner { | |||
203 | int so_is_open_owner; /* 1=openowner,0=lockowner */ | 203 | int so_is_open_owner; /* 1=openowner,0=lockowner */ |
204 | u32 so_id; | 204 | u32 so_id; |
205 | struct nfs4_client * so_client; | 205 | struct nfs4_client * so_client; |
206 | u32 so_seqid; | 206 | /* after increment in ENCODE_SEQID_OP_TAIL, represents the next |
207 | * sequence id expected from the client: */ | ||
208 | u32 so_seqid; | ||
207 | struct xdr_netobj so_owner; /* open owner name */ | 209 | struct xdr_netobj so_owner; /* open owner name */ |
208 | int so_confirmed; /* successful OPEN_CONFIRM? */ | 210 | int so_confirmed; /* successful OPEN_CONFIRM? */ |
209 | struct nfs4_replay so_replay; | 211 | struct nfs4_replay so_replay; |