sunrpc: don't wait for write before allowing reads from use-gss-proxy file
authorJeff Layton <jlayton@redhat.com>
Sat, 4 Jan 2014 12:18:03 +0000 (07:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:50:17 +0000 (13:50 -0800)
commitbc2bab994cc280ba8bb03b6c10e70f00127a71dc
tree2764b46c38878d4d6db22b9165a22ebb4c3e0f44
parent61b660256f542166762b562fdf7541e0f22cbb46
sunrpc: don't wait for write before allowing reads from use-gss-proxy file

commit 1654a04cd702fd19c297c36300a6ab834cf8c072 upstream.

It doesn't make much sense to make reads from this procfile hang. As
far as I can tell, only gssproxy itself will open this file and it
never reads from it. Change it to just give the present setting of
sn->use_gss_proxy without waiting for anything.

Note that we do not want to call use_gss_proxy() in this codepath
since an inopportune read of this file could cause it to be disabled
prematurely.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/auth_gss/gss_rpc_upcall.c
net/sunrpc/auth_gss/svcauth_gss.c
net/sunrpc/netns.h