]> git.itanic.dy.fi Git - linux-stable/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)
commit28362986f8743124b3a0fda20a8ed3e80309cce1
tree90dead4918abb3fdd079f72b29a2ae6b19838638
parent7bb21d68c535ad8be38e14a715632ae398b37ac1
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