blocking-uring-test
Vitaliy Filippov 2019-12-02 18:16:23 +03:00
parent d24860b51a
commit a165909745
1 changed files with 3 additions and 0 deletions

View File

@ -341,6 +341,9 @@ resume_0:
}
resume_5:
// And metadata writes, but only after data writes complete
// FIXME: Oops. We must sync data before writing metadata.
// Because this will result in more fsyncs we should reduce flushers activity by postponing
// flushes until there is sufficient amount of work to do (for example, at least ~32 operations in the queue).
if (!bs->inmemory_meta && meta_new.it->second.state == 0 || wait_count > 0)
{
// metadata sector is still being read or data is still being written, wait for it