diff options
| author | Andreas Gruenbacher <agruenba@redhat.com> | 2026-08-12 12:08:06 +0200 |
|---|---|---|
| committer | Andreas Gruenbacher <agruenba@redhat.com> | 2026-08-12 20:22:51 +0200 |
| commit | 657e5af4fe0b9696a6c7232da1727a9f37eaa04d (patch) | |
| tree | 7ff1aaade867eaff2fabc295abbcc7985019a9b2 /drivers/phy/axiado/git@git.tavy.me:linux.git | |
| parent | da26828b82a450f462bacbd51b10d1f71ee92630 (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 'drivers/phy/axiado/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
