]> 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:33:13 +0000 (20:33 -0700)
commit4ef63fed035329a9073a220a6acc8752aa2d9082
treefc12ac8d0fe9f408a5fabdc3fc1ba8727aecc7e0
parenta81dc6b7a344941a52564e0a390bca9268f4caa7
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