]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[DLM] recover_locks not clearing NEW_MASTER flag
authorDavid Teigland <teigland@redhat.com>
Wed, 23 Aug 2006 21:05:44 +0000 (16:05 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 24 Aug 2006 13:38:19 +0000 (09:38 -0400)
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>
fs/dlm/recover.c

index 528a2a0fa32948348928eff750eabbce70068176..a5e6d184872e0576301b72acb2f765aba3bac24e 100644 (file)
@@ -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););