]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
libceph: report connection fault with warning
authorAlex Elder <elder@inktank.com>
Fri, 14 Dec 2012 22:47:41 +0000 (16:47 -0600)
committerAlex Elder <elder@inktank.com>
Thu, 20 Dec 2012 16:56:13 +0000 (10:56 -0600)
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>
net/ceph/messenger.c

index 4b04ccc60db1c4800aab5a091f09068caeab7c95..4d111fd2b4923f7fe7cd287de00029b19c61f274 100644 (file)
@@ -2377,7 +2377,7 @@ fault:
 static void ceph_fault(struct ceph_connection *con)
        __releases(con->mutex)
 {
-       pr_err("%s%lld %s %s\n", ENTITY_NAME(con->peer_name),
+       pr_warning("%s%lld %s %s\n", ENTITY_NAME(con->peer_name),
               ceph_pr_addr(&con->peer_addr.in_addr), con->error_msg);
        dout("fault %p state %lu to peer %s\n",
             con, con->state, ceph_pr_addr(&con->peer_addr.in_addr));