svc: Move the authinfo cache to svc_xprt.
[safe/jmp/linux-2.6] / include / linux / sunrpc / svc_xprt.h
index 936e0dc..1b5da39 100644 (file)
@@ -50,11 +50,15 @@ struct svc_xprt {
 #define        XPT_OLD         9               /* used for xprt aging mark+sweep */
 #define        XPT_DETACHED    10              /* detached from tempsocks list */
 #define XPT_LISTENER   11              /* listening endpoint */
+#define XPT_CACHE_AUTH 12              /* cache auth info */
 
        struct svc_pool         *xpt_pool;      /* current pool iff queued */
        struct svc_serv         *xpt_server;    /* service for transport */
        atomic_t                xpt_reserved;   /* space on outq that is rsvd */
        struct mutex            xpt_mutex;      /* to serialize sending data */
+       spinlock_t              xpt_lock;       /* protects sk_deferred
+                                                * and xpt_auth_cache */
+       void                    *xpt_auth_cache;/* auth cache */
 };
 
 int    svc_reg_xprt_class(struct svc_xprt_class *);