]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Ensure we do not reuse open owner names
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 20 Apr 2012 23:24:51 +0000 (19:24 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 21 Apr 2012 03:14:28 +0000 (23:14 -0400)
commitc21b1461e0e3f7b8a3071a801e0e38f6a0ee022f
treedb1cbb01793ac5f744defb73e869373fefb7d0ce
parent443151e8dad0bf63803b1b0800b805242d0caa7f
NFSv4: Ensure we do not reuse open owner names

The NFSv4 spec is ambiguous about whether or not it is permissible
to reuse open owner names, so play it safe. This patch adds a timestamp
to the state_owner structure, and combines that with the IDA based
uniquifier.
Fixes a regression whereby the Linux server returns NFS4ERR_BAD_SEQID.

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