SUNRPC: Fix a thinko in xs_connect()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 13 Aug 2015 19:33:51 +0000 (15:33 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 17 Aug 2015 18:05:49 +0000 (13:05 -0500)
commit99b1a4c32ad22024ac6198a4337aaec5ea23168f
tree75a5205e03e25118906a4fe5558a2a9bd3bc6c50
parent6f536936b79bd4b5cea8fb0e5b8b0bce8cd1ea4a
SUNRPC: Fix a thinko in xs_connect()

It is rather pointless to test the value of transport->inet after
calling xs_reset_transport(), since it will always be zero, and
so we will never see any exponential back off behaviour.
Also don't force early connections for SOFTCONN tasks. If the server
disconnects us, we should respect the exponential backoff.

Cc: stable@vger.kernel.org # 4.0+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/xprtsock.c