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>
This commit is contained in:
parent
b2f21f7d85
commit
c7995f8a70
|
@ -1360,8 +1360,11 @@ static struct svc_sock *svc_setup_socket(struct svc_serv *serv,
|
||||||
else
|
else
|
||||||
svc_tcp_init(svsk, serv);
|
svc_tcp_init(svsk, serv);
|
||||||
|
|
||||||
dprintk("svc: svc_setup_socket created %p (inet %p)\n",
|
dprintk("svc: svc_setup_socket created %p (inet %p), "
|
||||||
svsk, svsk->sk_sk);
|
"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;
|
return svsk;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue