]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: define and use an explicit CONNECTED state
authorAlex Elder <elder@inktank.com>
Wed, 23 May 2012 19:35:23 +0000 (14:35 -0500)
committerSage Weil <sage@inktank.com>
Fri, 6 Jul 2012 04:14:27 +0000 (21:14 -0700)
commitbc024fb48bce38f93d65e1d134a716ab5f03819d
tree7521d46e58b360930d95f7eeb86396d4f729db57
parent6221050acdf50825ec47a67bc5f5ace3d494692b
libceph: define and use an explicit CONNECTED state

There is no state explicitly defined when a ceph connection is fully
operational.  So define one.

It's set when the connection sequence completes successfully, and is
cleared when the connection gets closed.

Be a little more careful when examining the old state when a socket
disconnect event is reported.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
include/linux/ceph/messenger.h
net/ceph/messenger.c