]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix stateid used for NFS v4 closes
authorAnna Schumaker <Anna.Schumaker@netapp.com>
Mon, 2 Mar 2015 21:46:09 +0000 (16:46 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 2 Mar 2015 23:06:42 +0000 (18:06 -0500)
commitcb58c5833dc21dab12a706153f718e46cbc04033
treea4185c4f13e62871747b08ac28bcb42c8a86b87f
parent177b25324e2a5b5d5c590574b9edeed5b0181ac4
NFS: Fix stateid used for NFS v4 closes

After 54e84fa44 the client uses the "current stateid" from the
nfs4_state structure to close a file.  This could potentially contain a
delegation stateid, which is disallowed by the protocol and causes
servers to return NFS4ERR_BAD_STATEID.  This patch restores the
(correct) behavior of sending the open stateid to close a file.

Reported-by: Olga Kornievskaia <kolga@netapp.com>
Fixes: 54e84fa44 (NFSv4: Fix an atomicity problem in CLOSE)
Signed-off-by: Anna Schumaker <Anna.Schumaker@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c