aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcsock.c
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/sunrpc/svcsock.c
parentSUNRPC: accept() may return sockets that are still in SYN_RECV (diff)
downloadlinux-dev-c7995f8a70c441146e128934d775d4ba0e4d7bc4.tar.xz
linux-dev-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/sunrpc/svcsock.c')
-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;
}