diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2007-12-30 22:07:48 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-01 16:42:11 -0500 |
commit | 02fc6c36188be0ad19502cfd39266150ffab7603 (patch) | |
tree | e1d85b49c18944209232bbb1ebaf51001b6af602 /include/linux/sunrpc | |
parent | e1b3157f9710622bad6c7747d3b08ed3d2394cf6 (diff) |
svc: Move sk_flags to the svc_xprt structure
This functionally trivial change moves the transport independent sk_flags
field to the transport independent svc_xprt structure.
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 | 12 | ||||
-rw-r--r-- | include/linux/sunrpc/svcsock.h | 13 |
2 files changed, 12 insertions, 13 deletions
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h index 6374805887a6..2edeb0d13ac2 100644 --- a/include/linux/sunrpc/svc_xprt.h +++ b/include/linux/sunrpc/svc_xprt.h | |||
@@ -36,6 +36,18 @@ struct svc_xprt { | |||
36 | struct svc_xprt_class *xpt_class; | 36 | struct svc_xprt_class *xpt_class; |
37 | struct svc_xprt_ops *xpt_ops; | 37 | struct svc_xprt_ops *xpt_ops; |
38 | struct kref xpt_ref; | 38 | struct kref xpt_ref; |
39 | unsigned long xpt_flags; | ||
40 | #define XPT_BUSY 0 /* enqueued/receiving */ | ||
41 | #define XPT_CONN 1 /* conn pending */ | ||
42 | #define XPT_CLOSE 2 /* dead or dying */ | ||
43 | #define XPT_DATA 3 /* data pending */ | ||
44 | #define XPT_TEMP 4 /* connected transport */ | ||
45 | #define XPT_DEAD 6 /* transport closed */ | ||
46 | #define XPT_CHNGBUF 7 /* need to change snd/rcv buf sizes */ | ||
47 | #define XPT_DEFERRED 8 /* deferred request pending */ | ||
48 | #define XPT_OLD 9 /* used for xprt aging mark+sweep */ | ||
49 | #define XPT_DETACHED 10 /* detached from tempsocks list */ | ||
50 | #define XPT_LISTENER 11 /* listening endpoint */ | ||
39 | }; | 51 | }; |
40 | 52 | ||
41 | int svc_reg_xprt_class(struct svc_xprt_class *); | 53 | int svc_reg_xprt_class(struct svc_xprt_class *); |
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h index ba07d50cb11b..b8a8496dfc7c 100644 --- a/include/linux/sunrpc/svcsock.h +++ b/include/linux/sunrpc/svcsock.h | |||
@@ -24,19 +24,6 @@ struct svc_sock { | |||
24 | 24 | ||
25 | struct svc_pool * sk_pool; /* current pool iff queued */ | 25 | struct svc_pool * sk_pool; /* current pool iff queued */ |
26 | struct svc_serv * sk_server; /* service for this socket */ | 26 | struct svc_serv * sk_server; /* service for this socket */ |
27 | unsigned long sk_flags; | ||
28 | #define SK_BUSY 0 /* enqueued/receiving */ | ||
29 | #define SK_CONN 1 /* conn pending */ | ||
30 | #define SK_CLOSE 2 /* dead or dying */ | ||
31 | #define SK_DATA 3 /* data pending */ | ||
32 | #define SK_TEMP 4 /* temp (TCP) socket */ | ||
33 | #define SK_DEAD 6 /* socket closed */ | ||
34 | #define SK_CHNGBUF 7 /* need to change snd/rcv buffer sizes */ | ||
35 | #define SK_DEFERRED 8 /* request on sk_deferred */ | ||
36 | #define SK_OLD 9 /* used for temp socket aging mark+sweep */ | ||
37 | #define SK_DETACHED 10 /* detached from tempsocks list */ | ||
38 | #define SK_LISTENER 11 /* listening endpoint */ | ||
39 | |||
40 | atomic_t sk_reserved; /* space on outq that is reserved */ | 27 | atomic_t sk_reserved; /* space on outq that is reserved */ |
41 | 28 | ||
42 | spinlock_t sk_lock; /* protects sk_deferred and | 29 | spinlock_t sk_lock; /* protects sk_deferred and |