diff options
author | Jeff Layton <jlayton@redhat.com> | 2013-11-14 07:25:18 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-12-06 13:06:31 -0500 |
commit | 89f842435c630f8426f414e6030bc2ffea0d6f81 (patch) | |
tree | 5f377121615ac15042edbfb1337d569446863b21 /include | |
parent | 4b9a445e3eeb8bd9278b1ae51c1b3a651e370cd6 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/rpc_pipe_fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/rpc_pipe_fs.h b/include/linux/sunrpc/rpc_pipe_fs.h index 85f13424647c..7f490bef9e99 100644 --- a/include/linux/sunrpc/rpc_pipe_fs.h +++ b/include/linux/sunrpc/rpc_pipe_fs.h | |||
@@ -131,5 +131,7 @@ extern int rpc_unlink(struct dentry *); | |||
131 | extern int register_rpc_pipefs(void); | 131 | extern int register_rpc_pipefs(void); |
132 | extern void unregister_rpc_pipefs(void); | 132 | extern void unregister_rpc_pipefs(void); |
133 | 133 | ||
134 | extern bool gssd_running(struct net *net); | ||
135 | |||
134 | #endif | 136 | #endif |
135 | #endif | 137 | #endif |