Commit e11b02d
Andreas Gruenbacher
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>1 parent 42eb8fd commit e11b02d
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1857 | 1857 | | |
1858 | 1858 | | |
1859 | 1859 | | |
1860 | | - | |
1861 | 1860 | | |
1862 | 1861 | | |
1863 | 1862 | | |
| |||
1890 | 1889 | | |
1891 | 1890 | | |
1892 | 1891 | | |
1893 | | - | |
1894 | | - | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
1895 | 1899 | | |
1896 | 1900 | | |
1897 | 1901 | | |
| |||
0 commit comments