]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/AsyncConnection: fix _conn_prefix racing when stopped
authorHaomai Wang <haomai@xsky.com>
Tue, 12 Jul 2016 17:26:04 +0000 (01:26 +0800)
committerHaomai Wang <haomai@xsky.com>
Tue, 16 Aug 2016 15:19:25 +0000 (23:19 +0800)
commit3a43a0bb34b1c74b19dcdc0401fd6adbc6b94b34
tree1bc92d69b6244855c6196d4c56f9f9406aedd6ed
parent1d4ff2a30a9c55736ccfeb79787e901bac2fb471
msg/async/AsyncConnection: fix _conn_prefix racing when stopped

When the connection is lossy and enter fault, it will dispatch reset event.
If cleanup handler is executed as well as ms_handle_reset call mark_down,
it may exists racing for "cs". cleanup handler will reset "cs" but
_conn_prefix in mark_down will access "cs".

Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/AsyncConnection.cc