android_kernel_google_msm/net/ceph
Sage Weil fccbf066b3 libceph: transition socket state prior to actual connect
(cherry picked from commit 89a86be0ce)

Once we call ->connect(), we are racing against the actual
connection, and a subsequent transition from CONNECTING ->
CONNECTED.  Set the state to CONNECTING before that, under the
protection of the mutex, to avoid the race.

This was introduced in 928443cd96,
with the original socket state code.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-26 11:38:25 -08:00
..
crush crush: fix memory leak when destroying tree buckets 2012-11-26 11:38:03 -08:00
armor.c
auth.c
auth_none.c ceph: messenger: reduce args to create_authorizer 2012-11-26 11:38:07 -08:00
auth_none.h
auth_x.c ceph: messenger: reduce args to create_authorizer 2012-11-26 11:38:07 -08:00
auth_x.h
auth_x_protocol.h
buffer.c
ceph_common.c libceph: embed ceph messenger structure in ceph_client 2012-11-26 11:38:21 -08:00
ceph_fs.c ceph: fix file mode calculation 2011-07-19 11:25:04 -07:00
ceph_hash.c
ceph_strings.c
crypto.c ceph: Use kmemdup rather than duplicating its implementation 2012-01-10 08:56:54 -08:00
crypto.h
debugfs.c
Kconfig ceph: use kernel DNS resolver 2011-10-25 16:10:16 -07:00
Makefile
messenger.c libceph: transition socket state prior to actual connect 2012-11-26 11:38:25 -08:00
mon_client.c libceph: make ceph_con_revoke() a msg operation 2012-11-26 11:38:24 -08:00
msgpool.c libceph: don't complain on msgpool alloc failures 2011-10-25 16:10:15 -07:00
osd_client.c libceph: make ceph_con_revoke_message() a msg op 2012-11-26 11:38:24 -08:00
osdmap.c libceph: fix overflow in osdmap_apply_incremental() 2012-11-26 11:38:24 -08:00
pagelist.c
pagevec.c