RPC/RDMA: correct the reconnect timer backoff
authorTom Talpey <talpey@netapp.com>
Fri, 10 Oct 2008 15:32:34 +0000 (11:32 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 10 Oct 2008 19:15:02 +0000 (15:15 -0400)
commit08ca0dce1eafa419059ac4cad9ed522af7052526
tree76724d885bcfc89db261f119a6f38a8cbb1a6240
parentb3cd8d45a764e6edb06e7bd386faf99a879569b8
RPC/RDMA: correct the reconnect timer backoff

The RPC/RDMA code had a constant 5-second reconnect backoff, and
always performed it, even when re-establishing a connection to a
server after the RPC layer closed it due to being idle. Make it
an geometric backoff (up to 30 seconds), and don't delay idle
reconnect.

Signed-off-by: Tom Talpey <talpey@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprtrdma/transport.c