libceph: allow sock transition from CONNECTING to CLOSED
authorSage Weil <sage@inktank.com>
Wed, 27 Jun 2012 19:31:02 +0000 (12:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:38 +0000 (11:38 -0800)
commitd92d11da1dd8531150823ff429ae29a0cf5e438d
tree15869cdd857ccb36d8a9d592694daa3a175ce061
parenta5b0662bb814837139bb73249463e199528101b5
libceph: allow sock transition from CONNECTING to CLOSED

(cherry picked from commit fbb85a478f6d4cce6942f1c25c6a68ec5b1e7e7f)

It is possible to close a socket that is in the OPENING state.  For
example, it can happen if ceph_con_close() is called on the con before
the TCP connection is established.  con_work() will come around and shut
down the socket.

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ceph/messenger.c