mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-30 11:56:31 -05:00
The monitor thread checked _last_scale_time_usecs without holding _scaling_mutex, then called add_thread()/remove_thread() which each acquired the mutex independently. The fast-path _maybe_grow_on_pressure could scale between the monitor's cooldown check and its scaling action, allowing two scaling events closer together than cooldown_usecs. Fix: hold _scaling_mutex across both the cooldown check and the scaling action in the monitor loop, using the _locked variants directly. This ensures the monitor and fast-path pressure grow are mutually exclusive for the entire check-and-act sequence. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||