gfs2: Get rid of unnecessary test_and_set_bit
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 29 Mar 2024 14:46:32 +0000 (15:46 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 9 Apr 2024 16:35:58 +0000 (18:35 +0200)
commit262ee3a07e98e8e56230547d4fe75d485348a55a
treef3aa758a7d7be67229646fba8a55ae6f7c755fe1
parent927cfc90d27cb7732a62464f95fd9aa7edfa9b70
gfs2: Get rid of unnecessary test_and_set_bit

The GLF_LOCK flag is protected by the gl->gl_lockref.lock spin lock
which is held when entering run_queue(), so we can use test_bit() and
set_bit() here.

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