]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61669d74dff335f6cedee4534a46e74dda286ffe
tree90dead4918abb3fdd079f72b29a2ae6b19838638
parenta58d21b24a8f980acb3f266c06f8e33671ec62ef
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>
net/ceph/messenger.c