]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Return the delegation if the server returns NFS4ERR_OPENMODE
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 7 Mar 2012 21:39:06 +0000 (16:39 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 7 Mar 2012 22:11:19 +0000 (17:11 -0500)
commitb1aad847cf6725354433daf47a5647ed158c8227
tree50b8f1f3f43c6eb93093abec368c070e2efdc7d2
parent41a759e14b8bd9406a92e0349ee4e874d18f1731
NFSv4: Return the delegation if the server returns NFS4ERR_OPENMODE

If a setattr() fails because of an NFS4ERR_OPENMODE error, it is
probably due to us holding a read delegation. Ensure that the
recovery routines return that delegation in this case.

Reported-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c