]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] knfsd: convert sk_inuse to atomic_t
authorGreg Banks <gnb@melbourne.sgi.com>
Mon, 2 Oct 2006 09:17:54 +0000 (02:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:19 +0000 (07:57 -0700)
commit1b51330c37ebe0392310b17ceb2801c74d6cf4cc
treeb04388ccaccd5fb304b4bd8be57258d52e79f886
parenta82e47e8c3a79b8689e1c75121363458b9560344
[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>
include/linux/sunrpc/svcsock.h
net/sunrpc/svcsock.c