diff options
author | Alex Elder <elder@inktank.com> | 2012-12-14 17:47:41 -0500 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2012-12-20 11:56:13 -0500 |
commit | 28362986f8743124b3a0fda20a8ed3e80309cce1 (patch) | |
tree | 90dead4918abb3fdd079f72b29a2ae6b19838638 /net | |
parent | 7bb21d68c535ad8be38e14a715632ae398b37ac1 (diff) |
libceph: report connection fault with warning
When a connection's socket disconnects, or if there's a protocol
error of some kind on the connection, a fault is signaled and
the connection is reset (closed and reopened, basically). We
currently get an error message on the log whenever this occurs.
A ceph connection will attempt to reestablish a socket connection
repeatedly if a fault occurs. This means that these error messages
will get repeatedly added to the log, which is undesirable.
Change the error message to be a warning, so they don't get
logged by default.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/ceph/messenger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index 4b04ccc60db1..4d111fd2b492 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c | |||
@@ -2377,7 +2377,7 @@ fault: | |||
2377 | static void ceph_fault(struct ceph_connection *con) | 2377 | static void ceph_fault(struct ceph_connection *con) |
2378 | __releases(con->mutex) | 2378 | __releases(con->mutex) |
2379 | { | 2379 | { |
2380 | pr_err("%s%lld %s %s\n", ENTITY_NAME(con->peer_name), | 2380 | pr_warning("%s%lld %s %s\n", ENTITY_NAME(con->peer_name), |
2381 | ceph_pr_addr(&con->peer_addr.in_addr), con->error_msg); | 2381 | ceph_pr_addr(&con->peer_addr.in_addr), con->error_msg); |
2382 | dout("fault %p state %lu to peer %s\n", | 2382 | dout("fault %p state %lu to peer %s\n", |
2383 | con, con->state, ceph_pr_addr(&con->peer_addr.in_addr)); | 2383 | con, con->state, ceph_pr_addr(&con->peer_addr.in_addr)); |