mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-21 15:36:31 -05:00
_remove_thread_locked enqueues a self-exit task and blocks on the future while holding _scaling_mutex. If all workers are busy with long-running tasks, this blocks indefinitely — starving the monitor thread (and any concurrent add_thread/set_threads) since they all contend on _scaling_mutex. Replace the unbounded wait with a 5-second timed wait. On timeout, return -EBUSY so callers can retry or report the condition. The enqueued self-exit task will still be picked up eventually and the thread will remove itself when a worker becomes free. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||