]> Gentwo Git Trees - linux/.git/commit
gfs2: Further sanitize lock_dlm.c
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:20 +0000 (12:02 +0200)
commitfd70ab7155c4b92a9747d42c02791a0793ab9c66
tree4406f5bf33e348327f64fdfed80e35fbc5e42210
parentcd718046646593ced5ad98f9cde22aaf2a2eb8f2
gfs2: Further sanitize lock_dlm.c

The gl_req field and GLF_BLOCKING flag are only relevant to gdlm_lock(),
its callback gdlm_ast(), and their helpers, so set and clear them inside
lock_dlm.c.

Also, the LM_FLAG_ANY flag is relevant to gdlm_lock(), but do_xmote()
doesn't pass that flag down to gdlm_lock() as it should.  Fix that by
passing down all the flags.

In addition, document the effect of the LM_FLAG_ANY flag on locks held
in EX mode locally.

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