Refactor local copy options into dedicated module#1751
Merged
Conversation
This was referenced May 5, 2026
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…3716) Static-analysis audit recording the runtime model decision for the io_uring integration. Recommends keeping io_uring synchronous and routing async callers through tokio::task::spawn_blocking (#1751) rather than adopting tokio-uring or building a custom poll-driven SQE submitter, on the grounds that fast_io must remain tokio-free and the session ring pool design (#1937) stays simpler when leases are synchronous.
This was referenced May 7, 2026
oferchen
added a commit
that referenced
this pull request
May 7, 2026
…3867) Capture the current sync-over-fd pattern, the spawn_blocking vs tokio-uring integration trade-off, alignment with the #1751 blocking-pool plan, and the soundness risks (kernel ring fd ownership across .await, registered buffer lifetime). Recommend keeping io_uring synchronous behind fast_io and dispatching from async via spawn_blocking.
3 tasks
3 tasks
oferchen
added a commit
that referenced
this pull request
May 7, 2026
…c daemon (#1751) (#3893) Designs the bridge between the tokio-driven async daemon (#1934/#1935) and rayon-dispatched CPU work (checksums, delta apply, parallel stat). Recommends a `rayon_bridge` helper in `crates/transfer/src/async_compat.rs` using `tokio::task::spawn_blocking` with a threshold short-circuit, and discusses the dedicated-pool + `block_in_place` alternative plus risks (double-spawn, panic propagation, cancellation, oversubscription).
This was referenced May 7, 2026
oferchen
added a commit
that referenced
this pull request
May 7, 2026
4 tasks
oferchen
added a commit
that referenced
this pull request
May 16, 2026
Expand the placeholder async migration plan into a comprehensive, opinionated design covering: current synchronous threading model per subsystem, per-subsystem cost/benefit, a phased incremental adoption strategy, tokio runtime choice with rejected alternatives, sync/async bridge patterns, backward-compat strategy, risk register, and open questions. Cross-references existing async-related tasks (#1367, #1411, #1591, #1593, #1595, #1674, #1751, #1779, #1780, #1782, #1796, #1797, #1805, #1806, #1889, #1890, #1891, #1892, #1934, #1935, #2136) and related design notes so future planners have a single anchor.
oferchen
added a commit
that referenced
this pull request
May 16, 2026
Expand the placeholder async migration plan into a comprehensive, opinionated design covering: current synchronous threading model per subsystem, per-subsystem cost/benefit, a phased incremental adoption strategy, tokio runtime choice with rejected alternatives, sync/async bridge patterns, backward-compat strategy, risk register, and open questions. Cross-references existing async-related tasks (#1367, #1411, #1591, #1593, #1595, #1674, #1751, #1779, #1780, #1782, #1796, #1797, #1805, #1806, #1889, #1890, #1891, #1892, #1934, #1935, #2136) and related design notes so future planners have a single anchor.
This was referenced May 16, 2026
oferchen
added a commit
that referenced
this pull request
May 17, 2026
…1751) (#4196) Document the canonical sync/async bridge between rayon-dispatched CPU work and the tokio runtime that will host the async daemon listener landing in #1935. Inventories 30 rayon call sites reachable from the daemon code paths, fixes the bridge signature, sizing recipe for both pools, anti-patterns to forbid in review, migration order keyed to phase 2 of the async migration plan, and a test strategy that does not require the async daemon to exist yet.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…3716) Static-analysis audit recording the runtime model decision for the io_uring integration. Recommends keeping io_uring synchronous and routing async callers through tokio::task::spawn_blocking (#1751) rather than adopting tokio-uring or building a custom poll-driven SQE submitter, on the grounds that fast_io must remain tokio-free and the session ring pool design (#1937) stays simpler when leases are synchronous.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…3867) Capture the current sync-over-fd pattern, the spawn_blocking vs tokio-uring integration trade-off, alignment with the #1751 blocking-pool plan, and the soundness risks (kernel ring fd ownership across .await, registered buffer lifetime). Recommend keeping io_uring synchronous behind fast_io and dispatching from async via spawn_blocking.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…c daemon (#1751) (#3893) Designs the bridge between the tokio-driven async daemon (#1934/#1935) and rayon-dispatched CPU work (checksums, delta apply, parallel stat). Recommends a `rayon_bridge` helper in `crates/transfer/src/async_compat.rs` using `tokio::task::spawn_blocking` with a threshold short-circuit, and discusses the dedicated-pool + `block_in_place` alternative plus risks (double-spawn, panic propagation, cancellation, oversubscription).
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Expand the placeholder async migration plan into a comprehensive, opinionated design covering: current synchronous threading model per subsystem, per-subsystem cost/benefit, a phased incremental adoption strategy, tokio runtime choice with rejected alternatives, sync/async bridge patterns, backward-compat strategy, risk register, and open questions. Cross-references existing async-related tasks (#1367, #1411, #1591, #1593, #1595, #1674, #1751, #1779, #1780, #1782, #1796, #1797, #1805, #1806, #1889, #1890, #1891, #1892, #1934, #1935, #2136) and related design notes so future planners have a single anchor.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…1751) (#4196) Document the canonical sync/async bridge between rayon-dispatched CPU work and the tokio runtime that will host the async daemon listener landing in #1935. Inventories 30 rayon call sites reachable from the daemon code paths, fixes the bridge signature, sizing recipe for both pools, anti-patterns to forbid in review, migration order keyed to phase 2 of the async migration plan, and a test strategy that does not require the async daemon to exist yet.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Expand the placeholder async migration plan into a comprehensive, opinionated design covering: current synchronous threading model per subsystem, per-subsystem cost/benefit, a phased incremental adoption strategy, tokio runtime choice with rejected alternatives, sync/async bridge patterns, backward-compat strategy, risk register, and open questions. Cross-references existing async-related tasks (#1367, #1411, #1591, #1593, #1595, #1674, #1751, #1779, #1780, #1782, #1796, #1797, #1805, #1806, #1889, #1890, #1891, #1892, #1934, #1935, #2136) and related design notes so future planners have a single anchor.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…1751) (#4196) Document the canonical sync/async bridge between rayon-dispatched CPU work and the tokio runtime that will host the async daemon listener landing in #1935. Inventories 30 rayon call sites reachable from the daemon code paths, fixes the bridge signature, sizing recipe for both pools, anti-patterns to forbid in review, migration order keyed to phase 2 of the async migration plan, and a test strategy that does not require the async daemon to exist yet.
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
LocalCopyOptionsand supporting types intolocal_copy::optionslocal_copy.rsto re-export the new module and drop redundant importsTesting
https://chatgpt.com/codex/tasks/task_e_69048c60617c83238267a94174263f44