forked from vitalif/vitastor
Fix operations paused for 0.5-1 second when it happens that io_uring submit is not triggered
parent
eae81bbda6
commit
b4740acf62
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue