diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-07-26 16:51:20 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-08-02 00:53:42 +0300 |
commit | c7995f8a70c441146e128934d775d4ba0e4d7bc4 (patch) | |
tree | 5d7c81f0b2e3e31f18e8679d29abed0f9f7e5be0 /net/sunrpc/svcsock.c | |
parent | b2f21f7d85758309f94eafd502fe555e8e5a7f06 (diff) | |
download | linux-c7995f8a70c441146e128934d775d4ba0e4d7bc4.tar.xz |
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.c | 7 |
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; } |