summaryrefslogtreecommitdiffstats
path: root/fs/dlm/recover.c
diff options
context:
space:
mode:
authorDavid Teigland2006-08-23 23:05:44 +0200
committerSteven Whitehouse2006-08-24 15:38:19 +0200
commit233e515f4062f99569c24f00ad7429a860b23db4 (patch)
treed2682d2a41f0f1e4ee3216dd661e1df3e276993a /fs/dlm/recover.c
parent[DLM] sequence number missing in not_ready reply (diff)
downloadkernel-qcow2-linux-233e515f4062f99569c24f00ad7429a860b23db4.tar.gz
kernel-qcow2-linux-233e515f4062f99569c24f00ad7429a860b23db4.tar.xz
kernel-qcow2-linux-233e515f4062f99569c24f00ad7429a860b23db4.zip
[DLM] recover_locks not clearing NEW_MASTER flag
When there are no locks on a resource, the recover_locks() function fails to clear the NEW_MASTER flag by going directly to out, missing the line that clears the flag. Signed-off-by: David Teigland <teigland@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm/recover.c')
-rw-r--r--fs/dlm/recover.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/dlm/recover.c b/fs/dlm/recover.c
index 528a2a0fa329..a5e6d184872e 100644
--- a/fs/dlm/recover.c
+++ b/fs/dlm/recover.c
@@ -473,22 +473,11 @@ static int recover_locks_queue(struct dlm_rsb *r, struct list_head *head)
return error;
}
-static int all_queues_empty(struct dlm_rsb *r)
-{
- if (!list_empty(&r->res_grantqueue) ||
- !list_empty(&r->res_convertqueue) ||
- !list_empty(&r->res_waitqueue))
- return 0;
- return 1;
-}
-
static int recover_locks(struct dlm_rsb *r)
{
int error = 0;
lock_rsb(r);
- if (all_queues_empty(r))
- goto out;
DLM_ASSERT(!r->res_recover_locks_count, dlm_dump_rsb(r););