OSDN Git Service

libceph: clear CONNECTING in ceph_con_close()
authorAlex Elder <elder@inktank.com>
Thu, 21 Jun 2012 02:53:53 +0000 (21:53 -0500)
committerSage Weil <sage@inktank.com>
Fri, 6 Jul 2012 04:14:24 +0000 (21:14 -0700)
commitbb9e6bba5d8b85b631390f8dbe8a24ae1ff5b48a
treee3923abfae2f2cb8af685dfb829a45df33e45779
parent456ea46865787283088b23a8a7f69244513b95f0
libceph: clear CONNECTING in ceph_con_close()

A connection that is closed will no longer be connecting.  So
clear the CONNECTING state bit in ceph_con_close().  Similarly,
if the socket has been closed we no longer are in connecting
state (a new connect sequence will need to be initiated).

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