SUNRPC: Add a framework to clean up management of rpc_pipefs directories
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 26 Aug 2013 19:38:11 +0000 (15:38 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 30 Aug 2013 13:19:38 +0000 (09:19 -0400)
commit6739ffb754b47e6c0fa9d9e268bde828f6856528
tree2bb59f676758404f87954c5f631c816935064490
parentd7631250b20119ea763d9ba461c3a9c5710cfa98
SUNRPC: Add a framework to clean up management of rpc_pipefs directories

The current system requires everyone to set up notifiers, manage directory
locking, etc.
What we really want to do is have the rpc_client create its directory,
and then create all the entries.

This patch will allow the RPCSEC_GSS and NFS code to register all the
objects that they want to have appear in the directory, and then have
the sunrpc code call them back to actually create/destroy their pipefs
dentries when the rpc_client creates/destroys the parent.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/clnt.h
include/linux/sunrpc/rpc_pipe_fs.h
net/sunrpc/clnt.c
net/sunrpc/rpc_pipe.c