sunrpc: replace sunrpc_net->gssd_running flag with a more reliable check
authorJeff Layton <jlayton@redhat.com>
Thu, 14 Nov 2013 12:25:18 +0000 (07:25 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 6 Dec 2013 18:06:31 +0000 (13:06 -0500)
commit89f842435c630f8426f414e6030bc2ffea0d6f81
tree5f377121615ac15042edbfb1337d569446863b21
parent4b9a445e3eeb8bd9278b1ae51c1b3a651e370cd6
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>
include/linux/sunrpc/rpc_pipe_fs.h
net/sunrpc/auth_gss/auth_gss.c
net/sunrpc/netns.h
net/sunrpc/rpc_pipe.c