summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-07-26 09:51:20 -0400
committerJ. Bruce Fields <bfields@redhat.com>2016-08-01 17:53:42 -0400
commitc7995f8a70c441146e128934d775d4ba0e4d7bc4 (patch)
tree5d7c81f0b2e3e31f18e8679d29abed0f9f7e5be0 /net
parentb2f21f7d85758309f94eafd502fe555e8e5a7f06 (diff)
downloadlinux-c7995f8a70c441146e128934d775d4ba0e4d7bc4.tar.gz
linux-c7995f8a70c441146e128934d775d4ba0e4d7bc4.tar.bz2
linux-c7995f8a70c441146e128934d775d4ba0e4d7bc4.zip
SUNRPC: Detect immediate closure of accepted sockets
This modification is useful for debugging issues that happen while the socket is being initialised. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/svcsock.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index a11ddc8975c3..57625f64efd5 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -1360,8 +1360,11 @@ static struct svc_sock *svc_setup_socket(struct svc_serv *serv,
else
svc_tcp_init(svsk, serv);
- dprintk("svc: svc_setup_socket created %p (inet %p)\n",
- svsk, svsk->sk_sk);
+ dprintk("svc: svc_setup_socket created %p (inet %p), "
+ "listen %d close %d\n",
+ svsk, svsk->sk_sk,
+ test_bit(XPT_LISTENER, &svsk->sk_xprt.xpt_flags),
+ test_bit(XPT_CLOSE, &svsk->sk_xprt.xpt_flags));
return svsk;
}