diff options
| author | 2026-08-12 12:08:06 +0200 | |
|---|---|---|
| committer | 2026-08-12 20:22:51 +0200 | |
| commit | 657e5af4fe0b9696a6c7232da1727a9f37eaa04d (patch) | |
| tree | 7ff1aaade867eaff2fabc295abbcc7985019a9b2 /scripts/Makefile.thinlto | |
| parent | gfs2: Remove the glock lru list and shrinker (diff) | |
gfs2: harden gfs2_glock_hold
Function gfs2_glock_hold() is expected only to be called when the glock is
held, so use lockref_get_not_zero() instead of lockref_get_not_dead().
In addition, when an asynchronous callback arrives in gfs2_glock_cb(), the
glock can already be dead (from __gfs2_glock_put()), or it can be on the glock
lru list with refcount 0, so we cannot use gfs2_glock_hold() there.
With gfs2_glock_cb() now handling dead glocks, we can remove the racy check in
gdlm_bast().
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
