sunrpc: replace sunrpc_net->gssd_running flag with a more reliable check
Now that we have a more reliable method to tell if gssd is running, we can replace the sn->gssd_running flag with a function that will query to see if it's up and running. There's also no need to attempt an upcall that we know will fail, so just return -EACCES if gssd isn't running. Finally, fix the warn_gss() message not to claim that that the upcall timed out since we don't necesarily perform one now when gssd isn't running, and remove the extraneous newline from the message. Signed-off-by:Jeff Layton <jlayton@redhat.com> Signed-off-by:
Trond Myklebust <Trond.Myklebust@netapp.com>
Showing
- include/linux/sunrpc/rpc_pipe_fs.h 2 additions, 0 deletionsinclude/linux/sunrpc/rpc_pipe_fs.h
- net/sunrpc/auth_gss/auth_gss.c 7 additions, 10 deletionsnet/sunrpc/auth_gss/auth_gss.c
- net/sunrpc/netns.h 0 additions, 2 deletionsnet/sunrpc/netns.h
- net/sunrpc/rpc_pipe.c 10 additions, 4 deletionsnet/sunrpc/rpc_pipe.c
Loading
Please register or sign in to comment