From: Olaf Kirch I submitted this one previously - svc_tcp_recvfrom currently returns any errors to the caller, including ECONNRESET and the like. This is something svc_recv isn't able to deal with: len = svsk->sk_recvfrom(rqstp); [...] if (len == 0 || len == -EAGAIN) { [...] return -EAGAIN; } [...] return len; The nfsd main loop will exit when it sees an error code other than EAGAIN. The following patch fixes this problem svc_recv is not equipped to deal with error codes other than EAGAIN, and will propagate anything else (such as ECONNRESET) up to nfsd, causing it to exit. Signed-off-by: Olaf Kirch Cc: Trond Myklebust Cc: Neil Brown Signed-off-by: Andrew Morton --- net/sunrpc/svcsock.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN net/sunrpc/svcsock.c~keep-nfsd-from-exiting-when-seeing-recv-errors net/sunrpc/svcsock.c --- devel/net/sunrpc/svcsock.c~keep-nfsd-from-exiting-when-seeing-recv-errors 2005-11-16 17:36:25.000000000 -0800 +++ devel-akpm/net/sunrpc/svcsock.c 2005-11-16 17:36:25.000000000 -0800 @@ -1026,7 +1026,7 @@ svc_tcp_recvfrom(struct svc_rqst *rqstp) } else { printk(KERN_NOTICE "%s: recvfrom returned errno %d\n", svsk->sk_server->sv_name, -len); - svc_sock_received(svsk); + goto err_delete; } return len; _