diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2007-12-30 22:07:59 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-01 16:42:11 -0500 |
commit | a50fea26b9d2aa7b66fdd6d9579de10827ec086a (patch) | |
tree | efb7893e6e45b417405e9320d3b82100b1684daf /include/linux/sunrpc | |
parent | f6150c3cab6e788afacb07470be3c6b4a722f1ed (diff) |
svc: Make svc_send transport neutral
Move the sk_mutex field to the transport independent svc_xprt structure.
Now all the fields that svc_send touches are transport neutral. Change the
svc_send function to use the transport independent svc_xprt directly instead
of the transport dependent svc_sock 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 | 1 | ||||
-rw-r--r-- | include/linux/sunrpc/svcsock.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h index 0b8ee06f99c0..1b8c596b1177 100644 --- a/include/linux/sunrpc/svc_xprt.h +++ b/include/linux/sunrpc/svc_xprt.h | |||
@@ -54,6 +54,7 @@ struct svc_xprt { | |||
54 | struct svc_pool *xpt_pool; /* current pool iff queued */ | 54 | struct svc_pool *xpt_pool; /* current pool iff queued */ |
55 | struct svc_serv *xpt_server; /* service for transport */ | 55 | struct svc_serv *xpt_server; /* service for transport */ |
56 | atomic_t xpt_reserved; /* space on outq that is rsvd */ | 56 | atomic_t xpt_reserved; /* space on outq that is rsvd */ |
57 | struct mutex xpt_mutex; /* to serialize sending data */ | ||
57 | }; | 58 | }; |
58 | 59 | ||
59 | int svc_reg_xprt_class(struct svc_xprt_class *); | 60 | int svc_reg_xprt_class(struct svc_xprt_class *); |
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h index ba41f11788f2..41c2dfaf7371 100644 --- a/include/linux/sunrpc/svcsock.h +++ b/include/linux/sunrpc/svcsock.h | |||
@@ -24,7 +24,6 @@ struct svc_sock { | |||
24 | * sk_info_authunix */ | 24 | * sk_info_authunix */ |
25 | struct list_head sk_deferred; /* deferred requests that need to | 25 | struct list_head sk_deferred; /* deferred requests that need to |
26 | * be revisted */ | 26 | * be revisted */ |
27 | struct mutex sk_mutex; /* to serialize sending data */ | ||
28 | 27 | ||
29 | /* We keep the old state_change and data_ready CB's here */ | 28 | /* We keep the old state_change and data_ready CB's here */ |
30 | void (*sk_ostate)(struct sock *); | 29 | void (*sk_ostate)(struct sock *); |