diff options
author | David Teigland <teigland@redhat.com> | 2007-08-07 09:44:48 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2007-08-14 10:31:02 +0100 |
commit | 3650925893469ccb03dbcc6a440c5d363350f591 (patch) | |
tree | 8f0b9d6ce880547723cb6590c27799821b9c2f96 /fs/gfs2/lops.c | |
parent | 9e5f2825a8b721360b291f14f42cd7a25781156b (diff) |
[DLM] fix basts for granted PR waiting CW
Fix a long standing bug where a blocking callback would be missed
when there's a granted lock in PR mode and waiting locks in both
PR and CW modes (and the PR lock was added to the waiting queue
before the CW lock). The logic simply compared the numerical values
of the modes to determine if a blocking callback was required, but in
the one case of PR and CW, the lower valued CW mode blocks the higher
valued PR mode. We just need to add a special check for this PR/CW
case in the tests that decide when a blocking callback is needed.
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/lops.c')
0 files changed, 0 insertions, 0 deletions