Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297425
b: refs/heads/master
c: f6d8248
h: refs/heads/master
i:
  297423: f74958d
v: v3
  • Loading branch information
J. Bruce Fields committed Feb 13, 2012
1 parent 55675d9 commit b2dd005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 508f92275624fc755104b17945bdc822936f1918
refs/heads/master: f6d82485e9a947ae19bb29e72644f4c6f27d5b89
7 changes: 1 addition & 6 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,16 +1575,11 @@ check_slot_seqid(u32 seqid, u32 slot_seqid, int slot_inuse)
else
return nfserr_seq_misordered;
}
/* Normal */
/* Note unsigned 32-bit arithmetic handles wraparound: */
if (likely(seqid == slot_seqid + 1))
return nfs_ok;
/* Replay */
if (seqid == slot_seqid)
return nfserr_replay_cache;
/* Wraparound */
if (seqid == 1 && (slot_seqid + 1) == 0)
return nfs_ok;
/* Misordered replay or misordered new request */
return nfserr_seq_misordered;
}

Expand Down

0 comments on commit b2dd005

Please sign in to comment.