Fix io_uring submission, journal sector selection

This commit is contained in:
Vitaliy Filippov
2019-11-19 18:07:40 +03:00
parent 8c690c76ec
commit 3bfa2f5f39
5 changed files with 86 additions and 50 deletions
+2 -1
View File
@@ -101,6 +101,7 @@ int blockstore::continue_sync(blockstore_operation *op)
data->callback = cb;
op->pending_ops = 1 + s;
op->sync_state = SYNC_JOURNAL_SYNC_SENT;
ringloop->submit();
}
else
{
@@ -150,12 +151,12 @@ void blockstore::handle_sync_event(ring_data_t *data, blockstore_operation *op)
{
dirty_db[*it].state = ST_J_SYNCED;
}
ack_sync(op);
}
else
{
throw std::runtime_error("BUG: unexpected sync op state");
}
ack_sync(op);
}
}