Fix operations paused for 0.5-1 second when it happens that io_uring submit is not triggered

This commit is contained in:
Vitaliy Filippov
2023-10-28 13:18:21 +03:00
parent eae81bbda6
commit b4740acf62
+2 -2
View File
@@ -119,9 +119,9 @@ void osd_messenger_t::outbox_push(osd_op_t *cur_op)
try_send(cl); try_send(cl);
} }
} }
else if (cl->write_msg.msg_iovlen > 0 || !try_send(cl)) else
{ {
if (cl->write_state == 0) if ((cl->write_msg.msg_iovlen > 0 || !try_send(cl)) && (cl->write_state == 0))
{ {
cl->write_state = CL_WRITE_READY; cl->write_state = CL_WRITE_READY;
write_ready_clients.push_back(cur_op->peer_fd); write_ready_clients.push_back(cur_op->peer_fd);