From: santosh.shilimkar@oracle.com Date: Tue, 1 Mar 2016 23:20:50 +0000 (-0800) Subject: RDS: IB: handle the RDMA CM time wait event X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37ea401e9ccc44453da6785514bb64ad6e9c181f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git RDS: IB: handle the RDMA CM time wait event Drop the RDS connection on RDMA_CM_EVENT_TIMEWAIT_EXIT so that it can reconnect and resume. While testing fastreg, this error happened in couple of tests but was getting un-noticed. Signed-off-by: Santosh Shilimkar Signed-off-by: Santosh Shilimkar Signed-off-by: David S. Miller --- diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c index 4f4b3d88319d..7220bebcf558 100644 --- a/net/rds/rdma_transport.c +++ b/net/rds/rdma_transport.c @@ -117,6 +117,14 @@ int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id, rds_conn_drop(conn); break; + case RDMA_CM_EVENT_TIMEWAIT_EXIT: + if (conn) { + pr_info("RDS: RDMA_CM_EVENT_TIMEWAIT_EXIT event: dropping connection %pI4->%pI4\n", + &conn->c_laddr, &conn->c_faddr); + rds_conn_drop(conn); + } + break; + default: /* things like device disconnect? */ printk(KERN_ERR "RDS: unknown event %u (%s)!\n",