Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 068213f7 authored by Bob Peterson's avatar Bob Peterson Committed by Steven Whitehouse
Browse files

GFS2: Remove unnecessary memory barrier



Function test_and_clear_bit implies a memory barrier, so subsequent
memory barriers are unnecessary.

Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 9d358143
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1411,7 +1411,6 @@ __acquires(&lru_lock)
		if (demote_ok(gl))
			handle_callback(gl, LM_ST_UNLOCKED, 0, false);
		WARN_ON(!test_and_clear_bit(GLF_LOCK, &gl->gl_flags));
		smp_mb__after_clear_bit();
		if (queue_delayed_work(glock_workqueue, &gl->gl_work, 0) == 0)
			gfs2_glock_put_nolock(gl);
		spin_unlock(&gl->gl_spin);