]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: Extend the mutex holding region around in nfsd4_process_open2()
authorOleg Drokin <green@linuxhacker.ru>
Wed, 15 Jun 2016 03:28:05 +0000 (23:28 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 16 Jun 2016 02:03:41 +0000 (22:03 -0400)
commitb515f863cae3ca24e9e608ec1ca2f6600e679467
treef37829299f97a6ab668ec0ec77bf00af101ae5be
parent57df6efb22679f498ad1144d9c47ca0f4fa470ff
nfsd: Extend the mutex holding region around in nfsd4_process_open2()

To avoid racing entry into nfs4_get_vfs_file().
Make init_open_stateid() return with locked stateid to be unlocked
by the caller.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c