sunrpc: add xprt_switch direcotry to sunrpc's sysfs
Add xprt_switch directory to the sysfs and create individual xprt_swith subdirectories for multipath transport group. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
committed by
Trond Myklebust
parent
d3abc73987
commit
baea99445d
@@ -10,10 +10,20 @@ struct rpc_sysfs_client {
|
||||
struct net *net;
|
||||
};
|
||||
|
||||
struct rpc_sysfs_xprt_switch {
|
||||
struct kobject kobject;
|
||||
struct net *net;
|
||||
struct rpc_xprt_switch *xprt_switch;
|
||||
struct rpc_xprt *xprt;
|
||||
};
|
||||
|
||||
int rpc_sysfs_init(void);
|
||||
void rpc_sysfs_exit(void);
|
||||
|
||||
void rpc_sysfs_client_setup(struct rpc_clnt *clnt, struct net *net);
|
||||
void rpc_sysfs_client_destroy(struct rpc_clnt *clnt);
|
||||
void rpc_sysfs_xprt_switch_setup(struct rpc_xprt_switch *xprt_switch,
|
||||
struct rpc_xprt *xprt, gfp_t gfp_flags);
|
||||
void rpc_sysfs_xprt_switch_destroy(struct rpc_xprt_switch *xprt);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user