gfs2: Simplify function gfs2_upgrade_iopen_glock
authorAndreas Gruenbacher <agruenba@redhat.com>
Sun, 11 Dec 2022 20:25:39 +0000 (21:25 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 18 Sep 2023 21:13:20 +0000 (23:13 +0200)
commit18c1db313ea904ebd01aa08135b72cdb04f889fb
treec50fb7beb93ebed11b53d092a233cf7634958b64
parenta49d273e579615ed63d0347f94075dd22b9458a3
gfs2: Simplify function gfs2_upgrade_iopen_glock

When trying to upgrade the iopen glock, gfs2_upgrade_iopen_glock() tries
to take the iopen glock with the LM_FLAG_TRY_1CB flag set before trying
to take it without the LM_FLAG_TRY or LM_FLAG_TRY_1CB flags set.  Both
calls will cause the lock contention bast callbacks to be invoked
throughout the cluster, and we really don't need them to be invoked
twice.  Remove the first LM_FLAG_TRY_1CB call to eliminate unnecessary
dlm traffic.

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