commit | e11b02df60bdf2ac6bb8eaed525db4f02415a902 | [log] [tgz] |
---|---|---|
author | Andreas Gruenbacher <agruenba@redhat.com> | Mon Nov 22 17:32:35 2021 +0100 |
committer | Andreas Gruenbacher <agruenba@redhat.com> | Thu Dec 02 12:41:09 2021 +0100 |
tree | ae59399f778d3e779643ce14e1bb46f3f36fd62b | |
parent | 42eb8fdac2fc5d62392dcfcf0253753e821a97b0 [diff] |
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>