2005-07-11 09:45:42

by Olaf Kirch

[permalink] [raw]
Subject: [PATCH] Keep nfsd from exiting when seeing recv() errors

I think 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 attached patch fixes this problem.

Olaf
--
Olaf Kirch | --- o --- Nous sommes du soleil we love when we play
[email protected] | / | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax


Attachments:
(No filename) (579.00 B)
sunrpc-svc-recv-errors (771.00 B)
Download all attachments