From: xie xingguo Date: Tue, 15 Jan 2019 05:36:12 +0000 (+0800) Subject: msg/async: unregister con from accept vs mark_down race X-Git-Tag: v12.2.12~71^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b2cf3fd03db042dce4d517c8108acc20b1c5d968;p=ceph.git msg/async: unregister con from accept vs mark_down race Signed-off-by: xie xingguo --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index ea03f8690740..c54a5b7e1c4f 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -1875,6 +1875,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; }