diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2007-12-30 22:07:50 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-01 16:42:11 -0500 |
commit | bb5cf160b282644c4491afbf76fbc66f5dc35030 (patch) | |
tree | 76443ea6f87faf4d2e039ca6d2e3a7008261a1d2 /include/linux/sunrpc | |
parent | 02fc6c36188be0ad19502cfd39266150ffab7603 (diff) |
svc: Move sk_server and sk_pool to svc_xprt
This is another incremental change that moves transport independent
fields from svc_sock to the svc_xprt structure. The changes
should be functionally null.
Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Acked-by: Neil Brown <neilb@suse.de>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Greg Banks <gnb@sgi.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/svc_xprt.h | 6 | ||||
-rw-r--r-- | include/linux/sunrpc/svcsock.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h index 2edeb0d13ac2..4042cdfec4fe 100644 --- a/include/linux/sunrpc/svc_xprt.h +++ b/include/linux/sunrpc/svc_xprt.h | |||
@@ -48,11 +48,15 @@ struct svc_xprt { | |||
48 | #define XPT_OLD 9 /* used for xprt aging mark+sweep */ | 48 | #define XPT_OLD 9 /* used for xprt aging mark+sweep */ |
49 | #define XPT_DETACHED 10 /* detached from tempsocks list */ | 49 | #define XPT_DETACHED 10 /* detached from tempsocks list */ |
50 | #define XPT_LISTENER 11 /* listening endpoint */ | 50 | #define XPT_LISTENER 11 /* listening endpoint */ |
51 | |||
52 | struct svc_pool *xpt_pool; /* current pool iff queued */ | ||
53 | struct svc_serv *xpt_server; /* service for transport */ | ||
51 | }; | 54 | }; |
52 | 55 | ||
53 | int svc_reg_xprt_class(struct svc_xprt_class *); | 56 | int svc_reg_xprt_class(struct svc_xprt_class *); |
54 | void svc_unreg_xprt_class(struct svc_xprt_class *); | 57 | void svc_unreg_xprt_class(struct svc_xprt_class *); |
55 | void svc_xprt_init(struct svc_xprt_class *, struct svc_xprt *); | 58 | void svc_xprt_init(struct svc_xprt_class *, struct svc_xprt *, |
59 | struct svc_serv *); | ||
56 | int svc_create_xprt(struct svc_serv *, char *, unsigned short, int); | 60 | int svc_create_xprt(struct svc_serv *, char *, unsigned short, int); |
57 | void svc_xprt_put(struct svc_xprt *xprt); | 61 | void svc_xprt_put(struct svc_xprt *xprt); |
58 | 62 | ||
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h index b8a8496dfc7c..92d4cc99c60d 100644 --- a/include/linux/sunrpc/svcsock.h +++ b/include/linux/sunrpc/svcsock.h | |||
@@ -22,8 +22,6 @@ struct svc_sock { | |||
22 | struct socket * sk_sock; /* berkeley socket layer */ | 22 | struct socket * sk_sock; /* berkeley socket layer */ |
23 | struct sock * sk_sk; /* INET layer */ | 23 | struct sock * sk_sk; /* INET layer */ |
24 | 24 | ||
25 | struct svc_pool * sk_pool; /* current pool iff queued */ | ||
26 | struct svc_serv * sk_server; /* service for this socket */ | ||
27 | atomic_t sk_reserved; /* space on outq that is reserved */ | 25 | atomic_t sk_reserved; /* space on outq that is reserved */ |
28 | 26 | ||
29 | spinlock_t sk_lock; /* protects sk_deferred and | 27 | spinlock_t sk_lock; /* protects sk_deferred and |