]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: unregister con from accept vs mark_down race
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Jan 2019 05:36:12 +0000 (13:36 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Jan 2019 06:50:35 +0000 (14:50 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/msg/async/AsyncConnection.cc

index 2d693a26e598d06b7b4fa8b97f938b62fef3010f..a17212a88817eb90d68e471ab1fc9a5c911b0ccf 100644 (file)
@@ -1868,6 +1868,7 @@ ssize_t AsyncConnection::handle_connect_msg(ceph_msg_connect &connect, bufferlis
   if (state != STATE_ACCEPTING_WAIT_CONNECT_MSG_AUTH) {
     ldout(async_msgr->cct, 1) << __func__ << " state changed while accept_conn, it must be mark_down" << dendl;
     assert(state == STATE_CLOSED || state == STATE_NONE);
+    async_msgr->unregister_conn(this);
     goto fail_registered;
   }