]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
NFSv4: Only increment the sequence id if the server saw it
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 7 Apr 2008 17:20:54 +0000 (13:20 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 19 Apr 2008 20:53:15 +0000 (16:53 -0400)
commitc1d519312dcdf11532fed9f99a8ecc3547ffd9d6
treef91e0d8df3fc424aaa6eddbc54aaf55bdbfb245b
parent35d05778e25ee16dbddb60331be0bc1309efba19
NFSv4: Only increment the sequence id if the server saw it

It is quite possible that the OPEN, CLOSE, LOCK, LOCKU,... compounds fail
before the actual stateful operation has been executed (for instance in the
PUTFH call). There is no way to tell from the overall status result which
operations were executed from the COMPOUND.

The fix is to move incrementing of the sequence id into the XDR layer,
so that we do it as we process the results from the stateful operation.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4xdr.c
include/linux/nfs_xdr.h