aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorGreg Banks <gnb@melbourne.sgi.com>2006-10-02 05:17:54 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-02 10:57:19 -0400
commitc45c357d7dbc9e94338f44349e0035149da86b26 (patch)
treeb04388ccaccd5fb304b4bd8be57258d52e79f886 /include/linux/sunrpc
parent36bdfc8bae51339aa27ef8e4ce148185293061ae (diff)
[PATCH] knfsd: convert sk_inuse to atomic_t
Convert the svc_sock->sk_inuse counter from an int protected by svc_serv->sv_lock, to an atomic. This reduces 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')
-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 846aee95eec7..17cb834a748c 100644
--- a/include/linux/sunrpc/svcsock.h
+++ b/include/linux/sunrpc/svcsock.h
@@ -21,7 +21,7 @@ struct svc_sock {
21 struct sock * sk_sk; /* INET layer */ 21 struct sock * sk_sk; /* INET layer */
22 22
23 struct svc_serv * sk_server; /* service for this socket */ 23 struct svc_serv * sk_server; /* service for this socket */
24 unsigned int sk_inuse; /* use count */ 24 atomic_t sk_inuse; /* use count */
25 unsigned long sk_flags; 25 unsigned long sk_flags;
26#define SK_BUSY 0 /* enqueued/receiving */ 26#define SK_BUSY 0 /* enqueued/receiving */
27#define SK_CONN 1 /* conn pending */ 27#define SK_CONN 1 /* conn pending */