WIP another experiment - "smart" iothreads

This commit is contained in:
Vitaliy Filippov
2024-07-03 11:05:45 +03:00
parent d07e072212
commit 249a233b37
9 changed files with 743 additions and 158 deletions
+2 -6
View File
@@ -603,7 +603,7 @@ void osd_messenger_t::handle_rdma_events()
if (!is_send)
{
rc->cur_recv--;
if (!handle_read_buffer(cl, rc->recv_buffers[rc->next_recv_buf].buf, wc[i].byte_len))
if (!cl->handle_read_buffer(rc->recv_buffers[rc->next_recv_buf].buf, wc[i].byte_len))
{
// handle_read_buffer may stop the client
continue;
@@ -666,9 +666,5 @@ void osd_messenger_t::handle_rdma_events()
}
}
} while (event_count > 0);
for (auto cb: set_immediate)
{
cb();
}
set_immediate.clear();
handle_immediates();
}