libceph: fix handling of immediate socket connect failure
authorSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:16:16 +0000 (18:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:38:41 +0000 (11:38 -0800)
commit6cdaef1be27bc05ab4197b3ab4e3ee1d326cf04c
tree275f9277dbf50f31e26e37122cb11244797e3fa3
parent8992551d85934e0dc4683068612758831d1d4899
libceph: fix handling of immediate socket connect failure

(cherry picked from commit 8007b8d626b49c34fb146ec16dc639d8b10c862f)

If the connect() call immediately fails such that sock == NULL, we
still need con_close_socket() to reset our socket state to CLOSED.

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