]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gfs2: Do not use atomic operations unnecessarily
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 4 Aug 2025 23:58:47 +0000 (01:58 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 12 Sep 2025 10:02:18 +0000 (12:02 +0200)
commitcd718046646593ced5ad98f9cde22aaf2a2eb8f2
tree774b79ad9aad55b6ae5073f4d8ccf16be2c431ce
parent13c0004168633845fba328edf2cdec0de0292307
gfs2: Do not use atomic operations unnecessarily

The GLF_DEMOTE_IN_PROGRESS and GLF_LOCK flags and the glock refcount are
all protected by the glock spin lock, so there is no need for atomic
operations / barriers here.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Andrew Price <anprice@redhat.com>
fs/gfs2/glock.c