]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: Remove DLM_LKF_ALTCW / DLM_LKF_ALTPR code
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 7 Aug 2025 08:21:33 +0000 (10:21 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 12 Sep 2025 10:02:25 +0000 (12:02 +0200)
commit2b813a72880dcc90ab5997e2307f961b5a8650bd
treecebcfadbbdac8021f505b770b9433a7420a04c95
parentfd70ab7155c4b92a9747d42c02791a0793ab9c66
gfs2: Remove DLM_LKF_ALTCW / DLM_LKF_ALTPR code

Commit 6802e3400ff45 ("[GFS2] Clean up the glock core") stopped passing
the LM_FLAG_ANY flag down to gdlm_lock() (then gfs2_lm_lock()).  Since
then, gfs2 effectively hasn't been using dlm's DLM_LKF_ALTCW /
DLM_LKF_ALTPR flags, but the code still suggests that it does.  Recent
testing shows that those flags don't even work reliably anymore, so
instead of fixing code that hasn't been used since 2008, remove it.

In addition, clean up how the flags are passed to [gd]lm_lock().

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