Files
OpenViking/crates/ragfs
Ziyang Guo efbe012d6b perf(pathlock): back off contended lock retries (#3642)
Replace the fixed 50 ms retry loop with bounded exponential backoff and jitter while preserving the original first-retry latency floor. Clamp each delay to the remaining timeout so retry sleeps do not add avoidable timeout overshoot.

Add deterministic interval and polling-reduction checks plus a four-waiter contention regression. The 10-second worst-case schedule drops retry probes from 200 to 29 while all waiters still acquire after the holder releases.

Tests: cargo test -p ragfs --lib lock:: -- --nocapture
2026-08-12 10:31:41 +08:00
..