diff options
author | Andrew Morton <akpm@osdl.org> | 2006-10-30 07:57:57 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-30 21:12:21 +0100 |
commit | 202dd450246cd658e298a86dddca5592fcb898cd (patch) | |
tree | 3cea5cde79fcd87eaffaa4d38cb813aaf845ecf9 /net/sunrpc/svcsock.c | |
parent | [PATCH] APM: URL of APM 1.2 specs has changed (diff) | |
download | linux-202dd450246cd658e298a86dddca5592fcb898cd.tar.xz linux-202dd450246cd658e298a86dddca5592fcb898cd.zip |
[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>
Diffstat (limited to '')
-rw-r--r-- | net/sunrpc/svcsock.c | 5 |
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) 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 |