]> 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 02:51:56 +0000 (19:51 -0700)
commitf71ce17ff829f8bf9771f1c7b08daaddce40594f
tree1b0be26d04ffbbeb94f61ef0c561f923beae9d72
parented9a34c5fc970e8371eb3a599db6ffc89bd56d9e
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