[GFS2] Fix delayed demote race
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 7 Jul 2008 09:02:36 +0000 (10:02 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 7 Jul 2008 09:02:36 +0000 (10:02 +0100)
There is a race in the delayed demote code where it does the wrong thing
if a demotion to UN has occurred for other reasons before the delay has
expired. This patch adds an assert to catch that condition as well as
fixing the root cause by adding an additional check for the UN state.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Bob Peterson <rpeterso@redhat.com>

No differences found