Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Trond Myklebust and committed by
J. Bruce Fields
c7995f8a b2f21f7d

+5 -2
+5 -2
net/sunrpc/svcsock.c
··· 1360 1360 else 1361 1361 svc_tcp_init(svsk, serv); 1362 1362 1363 - dprintk("svc: svc_setup_socket created %p (inet %p)\n", 1364 - svsk, svsk->sk_sk); 1363 + dprintk("svc: svc_setup_socket created %p (inet %p), " 1364 + "listen %d close %d\n", 1365 + svsk, svsk->sk_sk, 1366 + test_bit(XPT_LISTENER, &svsk->sk_xprt.xpt_flags), 1367 + test_bit(XPT_CLOSE, &svsk->sk_xprt.xpt_flags)); 1365 1368 1366 1369 return svsk; 1367 1370 }