]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit21c201cb646e5cf39b6fb54129b17fb8066b279e
treeeb8020ff76d93017af31f10dbdd4b5d929dd4369
parent32736f844916a4ab3b2a9d55542459102e74439c
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