Repository navigation
perf(transfer): wire io_uring RENAMEAT2/LINKAT into disk-commit path (#1924) - #3992
Merged
Merged
Conversation
…1924) Wire the existing fast_io io_uring RENAMEAT2 and LINKAT opcode wrappers into the transfer crate's disk-commit thread and hardlink creation paths for remote transfers. On Linux 5.11+ (RENAMEAT2) and 5.15+ (LINKAT), these operations are submitted as io_uring SQEs instead of synchronous syscalls. All other platforms fall back to std::fs::rename and std::fs::hard_link transparently. Three call sites updated: - disk_commit::process::commit_file - temp-file rename after write - receiver::directory::links::create_hardlinks - follower hard links - receiver::quick_check::try_reference_dest - link-dest hard links
8 tasks
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…1924) (#3992) Wire the existing fast_io io_uring RENAMEAT2 and LINKAT opcode wrappers into the transfer crate's disk-commit thread and hardlink creation paths for remote transfers. On Linux 5.11+ (RENAMEAT2) and 5.15+ (LINKAT), these operations are submitted as io_uring SQEs instead of synchronous syscalls. All other platforms fall back to std::fs::rename and std::fs::hard_link transparently. Three call sites updated: - disk_commit::process::commit_file - temp-file rename after write - receiver::directory::links::create_hardlinks - follower hard links - receiver::quick_check::try_reference_dest - link-dest hard links
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…1924) (#3992) Wire the existing fast_io io_uring RENAMEAT2 and LINKAT opcode wrappers into the transfer crate's disk-commit thread and hardlink creation paths for remote transfers. On Linux 5.11+ (RENAMEAT2) and 5.15+ (LINKAT), these operations are submitted as io_uring SQEs instead of synchronous syscalls. All other platforms fall back to std::fs::rename and std::fs::hard_link transparently. Three call sites updated: - disk_commit::process::commit_file - temp-file rename after write - receiver::directory::links::create_hardlinks - follower hard links - receiver::quick_check::try_reference_dest - link-dest hard links
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…1924) (#3992) Wire the existing fast_io io_uring RENAMEAT2 and LINKAT opcode wrappers into the transfer crate's disk-commit thread and hardlink creation paths for remote transfers. On Linux 5.11+ (RENAMEAT2) and 5.15+ (LINKAT), these operations are submitted as io_uring SQEs instead of synchronous syscalls. All other platforms fall back to std::fs::rename and std::fs::hard_link transparently. Three call sites updated: - disk_commit::process::commit_file - temp-file rename after write - receiver::directory::links::create_hardlinks - follower hard links - receiver::quick_check::try_reference_dest - link-dest hard links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fast_io::try_rename_via_io_uring()into the transfer crate's disk-commit thread for temp-file renames after writes, matching the pattern already used in the engine crate's local-copy executorfast_io::try_hard_link_via_io_uring()into both hardlink creation paths: follower hard links inreceiver::directory::linksand link-dest hard links inreceiver::quick_checkrename(2)/link(2)syscalls; all other platforms fall back tostd::fstransparentlyTest plan
rename_with_io_uring_fallbackverify rename succeeds, replaces existing files, and fails for missing sourcehard_link_with_io_uring_fallbackin both links.rs and quick_check.rs verify hard link creation, inode sharing (Unix), and error on existing destinationspawn_disk_threadexercise the full commit path with io_uring Auto policyNonefallback fromtry_rename_via_io_uring/try_hard_link_via_io_uringCloses #1924, closes #1925