]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit5cc1fb2a093e254b656c64ff24b0b76bed1d34d9
treef37829299f97a6ab668ec0ec77bf00af101ae5be
parentfeb9dad5209280085d5b0c094fa67e7a8d75c81a
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