msg/async: batch handle numevents.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
This commit is contained in:
Jianpeng Ma 2017-10-17 04:54:45 +08:00
parent 44074027de
commit aac1a20139

View File

@ -430,12 +430,12 @@ int EventCenter::process_events(int timeout_microseconds, ceph::timespan *worki
cur_process.swap(external_events);
external_num_events.store(0);
external_lock.unlock();
numevents += cur_process.size();
while (!cur_process.empty()) {
EventCallbackRef e = cur_process.front();
ldout(cct, 30) << __func__ << " do " << e << dendl;
e->do_request(0);
cur_process.pop_front();
numevents++;
}
}