]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Fix remote demote of weak glock holders
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 22 Nov 2021 16:32:35 +0000 (17:32 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 2 Dec 2021 11:41:09 +0000 (12:41 +0100)
commitcd6aaeef72d6c5f8281ef48ffbc1f79cd5dc888d
treeae59399f778d3e779643ce14e1bb46f3f36fd62b
parent9404ad0bf6c6b635456ead5f333a4d3bde536d14
gfs2: Fix remote demote of weak glock holders

When we mock up a temporary holder in gfs2_glock_cb to demote weak holders in
response to a remote locking conflict, we don't set the HIF_HOLDER flag.  This
causes function may_grant to BUG.  Fix by setting the missing HIF_HOLDER flag
in the mock glock holder.

In addition, define the mock glock holder where it is used.

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