]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd4: don't close read-write opens too soon
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 29 Mar 2013 00:37:14 +0000 (20:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:08:23 +0000 (20:08 -0700)
commit73b12d302d65782ea3f072a230c939233f2ab4ec
treeab4ee2a60e9ee0d3b2b0289e8a218fe67cb7050f
parent082265bbb37927de80da50c22bf24993c0b9ca75
nfsd4: don't close read-write opens too soon

commit 0c7c3e67ab91ec6caa44bdf1fc89a48012ceb0c5 upstream.

Don't actually close any opens until we don't need them at all.

This means being left with write access when it's not really necessary,
but that's better than putting a file that might still have posix locks
held on it, as we have been.

Reported-by: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4state.c