]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] fix "sunrpc: fix refcounting problems in rpc servers"
authorAndrew Morton <akpm@osdl.org>
Mon, 30 Oct 2006 06:57:57 +0000 (22:57 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 30 Oct 2006 20:12:21 +0000 (12:12 -0800)
- printk should remain dprintk

- fix coding-style.

Cc: Neil Brown <neilb@suse.de>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
net/sunrpc/svcsock.c

index db0d1048d466c7cb5fccd01e7e31d61439d53096..64ca1f61dd9497fde7cb31a235468ea1c2606fbe 100644 (file)
@@ -299,8 +299,9 @@ void svc_reserve(struct svc_rqst *rqstp, int space)
 static inline void
 svc_sock_put(struct svc_sock *svsk)
 {
-       if (atomic_dec_and_test(&svsk->sk_inuse) && test_bit(SK_DEAD, &svsk->sk_flags)) {
-               printk("svc: releasing dead socket\n");
+       if (atomic_dec_and_test(&svsk->sk_inuse) &&
+                       test_bit(SK_DEAD, &svsk->sk_flags)) {
+               dprintk("svc: releasing dead socket\n");
                if (svsk->sk_sock->file)
                        sockfd_put(svsk->sk_sock);
                else