]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: return "real" sequence id in confirmed case
authorJ. Bruce Fields <bfields@redhat.com>
Sat, 26 May 2012 01:40:23 +0000 (21:40 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jun 2012 00:30:27 +0000 (20:30 -0400)
commit6b92fdd484deedec4ea8442ccc81247f54cdc892
treed1459666a0db61d07c631787b446243a8c1ae08a
parentc781d87e39663377a38a1bddb32d74ccaff535ac
nfsd4: return "real" sequence id in confirmed case

The client should ignore the returned sequence_id in the case where the
CONFIRMED flag is set on an exchange_id reply--and in the unconfirmed
case "1" is always the right response.  So it shouldn't actually matter
what we return here.

We could continue returning 1 just to catch clients ignoring the spec
here, but I'd rather be generous.  Other things equal, returning the
existing sequence_id seems more informative.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c