mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-09 17:46:18 +00:00
In addition to setting NEEDS_REFRESH when locks are acquired out of NL, we now also give them a refresh_gen counter that is increased by incrementing a long lived counter in the super. This gives callers a strictly increasing read-only indication that the lock has changed. They don't have to serialize users to clear NEEDS_REFRESH and transfer it to some other serialized state. scoutfs will use with the multiple inodes that are refreshed with respect to the lock's refresh_gen. Signed-off-by: Zach Brown <zab@versity.com>