nfsd: Extend the mutex holding region around in nfsd4_process_open2()

commit 5cc1fb2a09 upstream.

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>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Oleg Drokin 2016-06-14 23:28:05 -04:00 • committed by Greg Kroah-Hartman
commit f78ffdc2bb