svc: Move the authinfo cache to svc_xprt.
[deliverable/linux.git] / include / linux / sunrpc / svc_xprt.h
index 936e0dc52fccf2b61c7d3cf1a0920847c69771ee..1b5da39bb461a8cb744fddcac2c8ea095c162bed 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 *);
This page took 0.037485 seconds and 5 git commands to generate.