Batch handle_immediate_ops more

This commit is contained in:
Vitaliy Filippov
2026-07-05 14:10:10 +03:00
parent 79fb2def57
commit 5b6a6fce9a
3 changed files with 7 additions and 5 deletions
+5 -2
View File
@@ -76,6 +76,7 @@ void osd_messenger_t::read_requests()
}
}
read_ready_clients.clear();
handle_immediate_ops();
}
void osd_messenger_t::handle_read(int result, osd_client_t *cl)
@@ -111,7 +112,8 @@ void osd_messenger_t::handle_read(int result, osd_client_t *cl)
full_read = result >= cl->read_iov.iov_len;
if (!handle_read_buffer(cl, cl->in_buf, result))
{
handle_immediate_ops();
if (set_immediate_ops.size())
ringloop->wakeup();
return;
}
}
@@ -154,7 +156,8 @@ void osd_messenger_t::handle_read(int result, osd_client_t *cl)
{
read_ready_clients.push_back(cl->client_id);
}
handle_immediate_ops();
if (set_immediate_ops.size())
ringloop->wakeup();
}
void osd_messenger_t::handle_immediate_ops()