Re: [PATCH] [Bug 16494] NFS client over TCP hangs due to packetloss

From: David Miller
Date: Tue Aug 03 2010 - 04:21:34 EST

From: "Andy Chittenden" <andyc.bluearc@xxxxxxxxx>
Date: Tue, 3 Aug 2010 09:14:31 +0100

> I don't know whether this patch is the correct fix or not but it enables the
> NFS client to recover.
> Kernel version: and 2.6.32.
> Fixes <>. It clears down
> any previous shutdown attempts so that reconnects on a socket that's been
> shutdown leave the socket in a usable state (otherwise tcp_sendmsg() returns
> -EPIPE).

If the SunRPC code wants to close a TCP socket then use it again,
it should disconnect by doing a connect() with sa_family == AF_UNSPEC
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at