]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: add reconnect retry scheme for stalled connections
authorSantosh Shilimkar <santosh.shilimkar@oracle.com>
Tue, 12 Jul 2016 06:39:45 +0000 (23:39 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 12 Oct 2016 17:20:26 +0000 (10:20 -0700)
commit5acb959ad59966b0b6905802ed720d26c560c3c5
treeb0c8bb36d801bbb2fc8d7de8f9cb27091270b84b
parent812c02791add650abb421388593353ba1ea85887
RDS: add reconnect retry scheme for stalled connections

RDS IB connections gets stalled at times and letting the connections
take its sweet time to reconnect. On passive side, we wait for 15 seconds
for such stalled connections which is too slow based on application
IO timeouts. IB connections are established in milliseconds so we better
drop these stuck connections early and retry.

The retry timeout is kept tunable via reconnect_retry_ms sysctl. The
upper bound for retries is tunbale via rds_sysctl_reconnect_max_retries.

Orabug: 22347191

Tested-by: Michael Nowak <michael.nowak@oracle.com>
Tested-by: Rafael Alejandro Peralez <rafael.peralez@oracle.com>
Tested-by: Liwen Huang <liwen.huang@oracle.com>
Tested-by: Hong Liu <hong.x.liu@oracle.com>
Reviewed-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
net/rds/connection.c
net/rds/ib_cm.c
net/rds/rdma_transport.c
net/rds/rds.h
net/rds/sysctl.c
net/rds/threads.c