rds: If one path needs re-connection, check all and re-connect
In testing with mprds enabled, Oracle Cluster nodes after reboot were not able to communicate with others nodes and so failed to rejoin the cluster. Peers with lower IP address initiated connection but the node could not respond as it choose a different path and could not initiate a connection as it had a higher IP address. With this patch, when a node sends out a packet and the selected path is down, all other paths are also checked and any down paths are re-connected. Reviewed-by: Ka-cheong Poon <ka-cheong.poon@oracle.com> Reviewed-by: David Edmondson <david.edmondson@oracle.com> Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com> Signed-off-by: Rao Shoaib <rao.shoaib@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e6ced831ef
commit
9ef845f894
@@ -905,6 +905,17 @@ void rds_conn_path_connect_if_down(struct rds_conn_path *cp)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rds_conn_path_connect_if_down);
|
||||
|
||||
/* Check connectivity of all paths
|
||||
*/
|
||||
void rds_check_all_paths(struct rds_connection *conn)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
do {
|
||||
rds_conn_path_connect_if_down(&conn->c_path[i]);
|
||||
} while (++i < conn->c_npaths);
|
||||
}
|
||||
|
||||
void rds_conn_connect_if_down(struct rds_connection *conn)
|
||||
{
|
||||
WARN_ON(conn->c_trans->t_mp_capable);
|
||||
|
Reference in New Issue
Block a user