From: Trond Myklebust Date: Tue, 26 Jul 2016 13:51:20 +0000 (-0400) Subject: SUNRPC: Detect immediate closure of accepted sockets X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c7995f8a70c441146e128934d775d4ba0e4d7bc4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: J. Bruce Fields --- 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; }