]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: encapsulate connection backoff
authorAlex Elder <elder@inktank.com>
Tue, 19 Feb 2013 18:25:57 +0000 (12:25 -0600)
committerAlex Elder <elder@inktank.com>
Mon, 25 Feb 2013 21:37:24 +0000 (15:37 -0600)
commit71cab920c3957286058f3853477b7c8f5d545b14
tree200084eee31132641d4402a4cf115f4378d5f586
parent668b186caf97aba1d1f0d0e95d6bb6600389f4b0
libceph: encapsulate connection backoff

Collect the code that tests for and implements a backoff delay for a
ceph connection into a new function, ceph_backoff().

Make the debug output messages in that part of the code report
things consistently by reporting a message in the socket closed
case, and by making the one for PREOPEN state report the connection
pointer like the rest.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/messenger.c