Fix io_uring fsync race condition causing metadata loss #77
Reference in New Issue
Block a user
No description provided.
Delete Branch "changwei.ye/vitastor:fix-fsync-race"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
In the previous implementation,
unsynced_meta_write_countwas incremented early inprepare_meta_block_writebefore the I/O request was even submitted. Because Vitastor does not use IOSQE_IO_LINK for io_uring batch
submissions, the kernel does not guarantee execution order within a batch.
Contributor Name
Changwei Ye
CLA
WIP: Fix io_uring fsync race condition causing metadata lossto Fix io_uring fsync race condition causing metadata loss