mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-06 12:06:26 +00:00
This is another example of refactoring a loop to avoid sparse warnings from doing something in the else of a failed trylock if. We want to drop and reacquire the lock if the trylock fails so we do it every loop iteration. This shouldn't be experiencing much contention because most of the cov users are usually done under locks and invalidation has excluded lock holders. So the additional lock and unlock noise should be local. Signed-off-by: Zach Brown <zab@versity.com>