]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 13 Apr 2012 19:23:01 +0000 (12:23 -0700)
commit36c5b09dd47af9cf7579c7df7f5d8f9367121256
treeb8d1e5877991698d65ee0facfdcd6fc9007027be
parent4bc1568bc7fdb3ef1020f2fbc81876ad333d0405
NFSv4: Return the delegation if the server returns NFS4ERR_OPENMODE

commit 3114ea7a24d3264c090556a2444fc6d2c06176d4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c