]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SUNRPC: Don't start the retransmission timer when out of socket space
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 22 Feb 2013 19:57:57 +0000 (14:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:26:12 +0000 (11:26 -0700)
commitf1c0d40a55ba1dba9513a1796c26ebcb1b09e4d1
tree4e09fd819e6b42460763857c4a46a21a0fc93108
parent8a14f843b1a8bc230023762c18cd9af1225cf47f
SUNRPC: Don't start the retransmission timer when out of socket space

commit a9a6b52ee1baa865283a91eb8d443ee91adfca56 upstream.

If the socket is full, we're better off just waiting until it empties,
or until the connection is broken. The reason why we generally don't
want to time out is that the call to xprt->ops->release_xprt() will
trigger a connection reset, which isn't helpful...

Let's make an exception for soft RPC calls, since they have to provide
timeout guarantees.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/xprt.c