diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2007-12-30 22:07:19 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-01 16:42:08 -0500 |
commit | 9f29868b491beee706931e0cf875a60cb4688754 (patch) | |
tree | ae8dbe9829e7dceae8e7d9942a7d66e12135b5a4 | |
parent | 360d873864c8903a650b227758b49dd50e6ecc9f (diff) |
svc: Change the svc_sock in the rqstp structure to a transport
The rqstp structure contains a pointer to the transport for the
RPC request. This functionaly trivial patch adds an unamed union
with pointers to both svc_sock and svc_xprt. Ultimately the
union will be removed and only the rq_xprt field will remain. This
allows incrementally extracting transport independent interfaces without
one gigundo patch.
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>
-rw-r--r-- | include/linux/sunrpc/svc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 8531a70da73d..37f7448c997e 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
@@ -204,7 +204,10 @@ union svc_addr_u { | |||
204 | struct svc_rqst { | 204 | struct svc_rqst { |
205 | struct list_head rq_list; /* idle list */ | 205 | struct list_head rq_list; /* idle list */ |
206 | struct list_head rq_all; /* all threads list */ | 206 | struct list_head rq_all; /* all threads list */ |
207 | struct svc_sock * rq_sock; /* socket */ | 207 | union { |
208 | struct svc_xprt * rq_xprt; /* transport ptr */ | ||
209 | struct svc_sock * rq_sock; /* socket ptr */ | ||
210 | }; | ||
208 | struct sockaddr_storage rq_addr; /* peer address */ | 211 | struct sockaddr_storage rq_addr; /* peer address */ |
209 | size_t rq_addrlen; | 212 | size_t rq_addrlen; |
210 | 213 | ||