]> www.infradead.org Git - users/jedix/linux-maple.git/commit
SUNRPC: Fix a thinko in xs_connect()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 13 Aug 2015 19:33:51 +0000 (15:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:10 +0000 (19:26 +0200)
commitfc56e1157e720c07a5ef553f492349af547eb60c
treedc3a6eca3f42258321128037fee326387f3a04bd
parent0e592fde0adf6047581a43ca057f17e919cb082d
SUNRPC: Fix a thinko in xs_connect()

commit 99b1a4c32ad22024ac6198a4337aaec5ea23168f upstream.

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.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/xprtsock.c