mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-08 21:03:12 +00:00
Currently the server's recovery timeout work synchronously reclaims resources for each client whose recovery timed out. scoutfs_recov_next_pending() can always return the head of the pending list because its caller will always remove it from the list as it iterates. As we move to real fencing the server will be creating fence requests for all the timed out clients concurrently. It will need to iterate over all the rids for clients in recovery. So we sort recovery's pending list by rid and change _recov_next_pending to return the next pending rid after a rid argument. This lets the server iterate over all the pending rids at once. Signed-off-by: Zach Brown <zab@versity.com>