aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/svcsock.h
diff options
context:
space:
mode:
authorGreg Banks <gnb@melbourne.sgi.com>2006-10-02 05:17:56 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-02 10:57:19 -0400
commit5685f0fa1c24b138d041ef129ed419c5effa40e1 (patch)
tree068c413c32cc7735a590d4ec16efe55894e67b80 /include/linux/sunrpc/svcsock.h
parent1a68d952af5f43032012d26dd0d5164c9e9986bc (diff)
[PATCH] knfsd: convert sk_reserved to atomic_t
Convert the svc_sock->sk_reserved variable from an int protected by svc_serv->sv_lock, to an atomic. This reduces (by 1) the number of places we need to take the (effectively global) svc_serv->sv_lock. Signed-off-by: Greg Banks <gnb@melbourne.sgi.com> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/sunrpc/svcsock.h')
-rw-r--r--include/linux/sunrpc/svcsock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h
index 7766a1001660..7154e71c6d1f 100644
--- a/include/linux/sunrpc/svcsock.h
+++ b/include/linux/sunrpc/svcsock.h
@@ -34,7 +34,7 @@ struct svc_sock {
34#define SK_OLD 9 /* used for temp socket aging mark+sweep */ 34#define SK_OLD 9 /* used for temp socket aging mark+sweep */
35#define SK_DETACHED 10 /* detached from tempsocks list */ 35#define SK_DETACHED 10 /* detached from tempsocks list */
36 36
37 int sk_reserved; /* space on outq that is reserved */ 37 atomic_t sk_reserved; /* space on outq that is reserved */
38 38
39 spinlock_t sk_defer_lock; /* protects sk_deferred */ 39 spinlock_t sk_defer_lock; /* protects sk_deferred */
40 struct list_head sk_deferred; /* deferred requests that need to 40 struct list_head sk_deferred; /* deferred requests that need to