Andreas Gruenbacher acf1f42faf gfs2: Fix "Make glock lru list scanning safer"
Commit 228804a35caa tried to add a refcount check to
gfs2_scan_glock_lru() to make sure that glocks that are still referenced
cannot be freed.  It failed to account for the bias state_change() adds
to the refcount for held glocks, so held glocks are no longer removed
from the glock cache, which can lead to out-of-memory problems.  Fix
that.  (The inodes those glocks are associated with do get shrunk and do
get pushed out of memory.)

In addition, use the same eligibility check in gfs2_scan_glock_lru() and
gfs2_dispose_glock_lru().

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
2024-04-09 18:35:58 +02:00
..
2024-01-10 09:36:40 -08:00
2024-04-09 18:35:57 +02:00
2024-01-10 10:17:23 -08:00
2023-08-02 09:13:09 -06:00
2024-01-10 09:36:40 -08:00
2024-01-10 09:36:40 -08:00
2023-11-07 11:54:17 -08:00
2023-11-07 11:54:17 -08:00