提交 97069788 编写于 作者: A Andy Grover 提交者: David S. Miller

RDS: Turn down alarming reconnect messages

RDS's error messages when a connection goes down are a little
extreme. A connection may go down, and it will be re-established,
and everything is fine. This patch links these messages through
rdsdebug(), instead of to printk directly.
Signed-off-by: NAndy Grover <andy.grover@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 571c02fa
...@@ -203,9 +203,10 @@ static void rds_ib_qp_event_handler(struct ib_event *event, void *data) ...@@ -203,9 +203,10 @@ static void rds_ib_qp_event_handler(struct ib_event *event, void *data)
rdma_notify(ic->i_cm_id, IB_EVENT_COMM_EST); rdma_notify(ic->i_cm_id, IB_EVENT_COMM_EST);
break; break;
default: default:
rds_ib_conn_error(conn, "RDS/IB: Fatal QP Event %u " rdsdebug("Fatal QP Event %u "
"- connection %pI4->%pI4, reconnecting\n", "- connection %pI4->%pI4, reconnecting\n",
event->event, &conn->c_laddr, &conn->c_faddr); event->event, &conn->c_laddr, &conn->c_faddr);
rds_conn_drop(conn);
break; break;
} }
} }
......
...@@ -156,9 +156,11 @@ static void rds_iw_qp_event_handler(struct ib_event *event, void *data) ...@@ -156,9 +156,11 @@ static void rds_iw_qp_event_handler(struct ib_event *event, void *data)
case IB_EVENT_QP_REQ_ERR: case IB_EVENT_QP_REQ_ERR:
case IB_EVENT_QP_FATAL: case IB_EVENT_QP_FATAL:
default: default:
rds_iw_conn_error(conn, "RDS/IW: Fatal QP Event %u - connection %pI4->%pI4...reconnecting\n", rdsdebug("Fatal QP Event %u "
"- connection %pI4->%pI4, reconnecting\n",
event->event, &conn->c_laddr, event->event, &conn->c_laddr,
&conn->c_faddr); &conn->c_faddr);
rds_conn_drop(conn);
break; break;
} }
} }
......
...@@ -101,7 +101,7 @@ int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id, ...@@ -101,7 +101,7 @@ int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
break; break;
case RDMA_CM_EVENT_DISCONNECTED: case RDMA_CM_EVENT_DISCONNECTED:
printk(KERN_WARNING "RDS/RDMA: DISCONNECT event - dropping connection " rdsdebug("DISCONNECT event - dropping connection "
"%pI4->%pI4\n", &conn->c_laddr, "%pI4->%pI4\n", &conn->c_laddr,
&conn->c_faddr); &conn->c_faddr);
rds_conn_drop(conn); rds_conn_drop(conn);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册