From: Jianpeng Ma Date: Wed, 25 Oct 2017 16:03:36 +0000 (+0800) Subject: msg/async: batch handle out_seq. X-Git-Tag: v13.0.1~412^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8960e42ae07acce1bdbc79d3523fe76f3b64d3ef;p=ceph.git msg/async: batch handle out_seq. Signed-off-by: Jianpeng Ma --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 4c98bbe9e858..3f09648d0578 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -1940,13 +1940,13 @@ void AsyncConnection::requeue_sent() return; list >& rq = out_q[CEPH_MSG_PRIO_HIGHEST]; + out_seq -= sent.size(); while (!sent.empty()) { Message* m = sent.back(); sent.pop_back(); ldout(async_msgr->cct, 10) << __func__ << " " << *m << " for resend " << " (" << m->get_seq() << ")" << dendl; rq.push_front(make_pair(bufferlist(), m)); - out_seq--; } }