mirror of
https://github.com/versity/scoutfs.git
synced 2026-07-31 20:36:42 +00:00
scoutfs: clean up forest lock data
The client lock code forgot to call into the forest to clear its per-lock tracking before freeing the lock. This would result in a slow memory leak over time as locks were reclaimed by memory pressure. It shouldn't have affected consistency. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -222,6 +222,7 @@ static void lock_free(struct lock_info *linfo, struct scoutfs_lock *lock)
|
||||
BUG_ON(!list_empty(&lock->lru_head));
|
||||
BUG_ON(!list_empty(&lock->cov_list));
|
||||
|
||||
scoutfs_forest_clear_lock(sb, lock);
|
||||
kfree(lock);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user