Transform primary_r/w into "coroutines"

This commit is contained in:
Vitaliy Filippov
2020-02-24 02:40:52 +03:00
parent 4c0178f180
commit 09588a349f
3 changed files with 178 additions and 123 deletions
+2 -2
View File
@@ -332,11 +332,11 @@ void osd_t::exec_op(osd_op_t *cur_op)
}
else if (cur_op->req.hdr.opcode == OSD_OP_READ)
{
exec_primary_read(cur_op);
continue_primary_read(cur_op);
}
else if (cur_op->req.hdr.opcode == OSD_OP_WRITE)
{
exec_primary_write(cur_op);
continue_primary_write(cur_op);
}
else
{