NFSv4: The stateid must remain the same for replayed RPC calls
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 17 Mar 2013 19:52:00 +0000 (15:52 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 25 Mar 2013 16:04:10 +0000 (12:04 -0400)
commit9b20614988199fb03580b335a28250922e902098
treeeb8020ff76d93017af31f10dbdd4b5d929dd4369
parent8c86899f62738b8a22ca3a5f060e269b92e5545a
NFSv4: The stateid must remain the same for replayed RPC calls

If we replay a READ or WRITE call, we should not be changing the
stateid. Currently, we may end up doing so, because the stateid
is only selected at xdr encode time.

This patch ensures that we select the stateid after we get an NFSv4.1
session slot, and that we keep that same stateid across retries.

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