mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 05:54:21 +01:00
We want to submit I/O asynchronously with io_uring, which means we can have multiple concurrent lookups to the page that is under I/O. Therefore, let's add three page flags: up-to-date, locked, and error, so that the higher level layers can just look up a page, but wait if there's I/O happening.