aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/svcsock.h
diff options
context:
space:
mode:
authorTom Tucker <tom@opengridcomputing.com>2007-12-30 22:08:08 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-02-01 16:42:12 -0500
commitdef13d7401e9b95bbd34c20057ebeb2972708b1b (patch)
treeafea72afdfe80c645eaf75aa828a49a6e1dec864 /include/linux/sunrpc/svcsock.h
parent4bc6c497b26a7984cac842a09e2e8f8c46242782 (diff)
svc: Move the authinfo cache to svc_xprt.
Move the authinfo cache to svc_xprt. This allows both the TCP and RDMA transports to share this logic. A flag bit is used to determine if auth information is to be cached or not. Previously, this code looked at the transport protocol. I've also changed the spin_lock/unlock logic so that a lock is not taken for transports that are not caching auth info. 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/svcsock.h')
-rw-r--r--include/linux/sunrpc/svcsock.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h
index 406d0031b989..f2ed6a25a7aa 100644
--- a/include/linux/sunrpc/svcsock.h
+++ b/include/linux/sunrpc/svcsock.h
@@ -20,8 +20,6 @@ struct svc_sock {
20 struct socket * sk_sock; /* berkeley socket layer */ 20 struct socket * sk_sock; /* berkeley socket layer */
21 struct sock * sk_sk; /* INET layer */ 21 struct sock * sk_sk; /* INET layer */
22 22
23 spinlock_t sk_lock; /* protects sk_deferred and
24 * sk_info_authunix */
25 struct list_head sk_deferred; /* deferred requests that need to 23 struct list_head sk_deferred; /* deferred requests that need to
26 * be revisted */ 24 * be revisted */
27 25
@@ -34,9 +32,6 @@ struct svc_sock {
34 int sk_reclen; /* length of record */ 32 int sk_reclen; /* length of record */
35 int sk_tcplen; /* current read length */ 33 int sk_tcplen; /* current read length */
36 34
37 /* cache of various info for TCP sockets */
38 void *sk_info_authunix;
39
40 struct sockaddr_storage sk_local; /* local address */ 35 struct sockaddr_storage sk_local; /* local address */
41 struct sockaddr_storage sk_remote; /* remote peer's address */ 36 struct sockaddr_storage sk_remote; /* remote peer's address */
42 int sk_remotelen; /* length of address */ 37 int sk_remotelen; /* length of address */