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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 20 Mar 2013 15:03:16 +0000 (15:03 +0000)
commit8c5e63a26e6b92c4cb171273beadc02a989f4939
tree641b247555539617fddeb60635a8bc3b24467da1
parentb42d5faf4e168d24b85c2c3f59f8d0ee4385dfa1
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: Ben Hutchings <ben@decadent.org.uk>
net/sunrpc/xprt.c