aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-10-30 01:57:57 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-30 15:12:21 -0500
commit202dd450246cd658e298a86dddca5592fcb898cd (patch)
tree3cea5cde79fcd87eaffaa4d38cb813aaf845ecf9
parent3f4b23e9833f0816b57d07401eac5e184b627fd7 (diff)
[PATCH] fix "sunrpc: fix refcounting problems in rpc servers"
- 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>
-rw-r--r--net/sunrpc/svcsock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index db0d1048d466..64ca1f61dd94 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -299,8 +299,9 @@ void svc_reserve(struct svc_rqst *rqstp, int space)
299static inline void 299static inline void
300svc_sock_put(struct svc_sock *svsk) 300svc_sock_put(struct svc_sock *svsk)
301{ 301{
302 if (atomic_dec_and_test(&svsk->sk_inuse) && test_bit(SK_DEAD, &svsk->sk_flags)) { 302 if (atomic_dec_and_test(&svsk->sk_inuse) &&
303 printk("svc: releasing dead socket\n"); 303 test_bit(SK_DEAD, &svsk->sk_flags)) {
304 dprintk("svc: releasing dead socket\n");
304 if (svsk->sk_sock->file) 305 if (svsk->sk_sock->file)
305 sockfd_put(svsk->sk_sock); 306 sockfd_put(svsk->sk_sock);
306 else 307 else