]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
libceph: report connection fault with warning
authorAlex Elder <elder@inktank.com>
Fri, 14 Dec 2012 22:47:41 +0000 (16:47 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:51:19 +0000 (08:51 -0800)
commit6ea5c964ecc4037d4ae56694982be253bd821685
treedc0a6999e694922ee62c80a1fade25111eabb49d
parent1c0bd4af222ba3a54bf3ba489127323079d0816d
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>
(cherry picked from commit 28362986f8743124b3a0fda20a8ed3e80309cce1)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/messenger.c