mirror of
https://github.com/ceph/ceph
synced 2025-01-02 17:12:31 +00:00
msg/async: batch handle numevents.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
This commit is contained in:
parent
44074027de
commit
aac1a20139
@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user