sunrpc: create a new dummy pipe for gssd to hold open
authorJeff Layton <jlayton@redhat.com>
Thu, 14 Nov 2013 12:25:17 +0000 (07:25 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 6 Dec 2013 18:06:30 +0000 (13:06 -0500)
commit4b9a445e3eeb8bd9278b1ae51c1b3a651e370cd6
tree883070dd3c7eaafc185787649c5591528478eb3b
parentc7848f69ec4a8c03732cde5c949bd2aa711a9f4b
sunrpc: create a new dummy pipe for gssd to hold open

rpc.gssd will naturally hold open any pipe named */clnt*/gssd that shows
up under rpc_pipefs. That behavior gives us a reliable mechanism to tell
whether it's actually running or not.

Create a new toplevel "gssd" directory in rpc_pipefs when it's mounted.
Under that directory create another directory called "clntXX", and then
within that a pipe called "gssd".

We'll never send an upcall along that pipe, and any downcall written to
it will just return -EINVAL.

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/netns.h
net/sunrpc/rpc_pipe.c
net/sunrpc/sunrpc_syms.c