Skip to content

Commit

Permalink
RDS: Turn down alarming reconnect messages
Browse files Browse the repository at this point in the history
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: Andy Grover <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Andy Grover authored and davem330 committed Mar 17, 2010
1 parent 571c02f commit 9706978
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion net/rds/ib_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
break;
default:
rds_ib_conn_error(conn, "RDS/IB: Fatal QP Event %u "
rdsdebug("Fatal QP Event %u "
"- connection %pI4->%pI4, reconnecting\n",
event->event, &conn->c_laddr, &conn->c_faddr);
rds_conn_drop(conn);
break;
}
}
Expand Down
4 changes: 3 additions & 1 deletion net/rds/iw_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_FATAL:
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,
&conn->c_faddr);
rds_conn_drop(conn);
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion net/rds/rdma_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
break;

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,
&conn->c_faddr);
rds_conn_drop(conn);
Expand Down

0 comments on commit 9706978

Please sign in to comment.