]> 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:32:04 +0000 (11:32 -0700)
commit5295f18c9d943d207fa9101b4d10952ad185b8bc
tree1f4519ea281e83de498ee0bdfbe554c2fddb8e04
parent53c4e85f063e53ccfe9c34a78e0a33b849b37fba
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