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

Vitaliy Filippov 2023-10-28 02:48:58 +03:00
parent eae81bbda6
commit b4740acf62
1 changed files with 2 additions and 2 deletions

View File

@ -119,9 +119,9 @@ void osd_messenger_t::outbox_push(osd_op_t *cur_op)
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;
write_ready_clients.push_back(cur_op->peer_fd);