]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ocfs2/dlm/dlmast.c
ocfs2: mle ref counting fixes
[linux-2.6-omap-h63xx.git] / fs / ocfs2 / dlm / dlmast.c
index 355593dd8ef8139a4c60126dcbac00da27105bc7..87ee29cad50b3426a4c8956a318f1d9f6cbfb4cd 100644 (file)
@@ -381,8 +381,7 @@ do_ast:
        ret = DLM_NORMAL;
        if (past->type == DLM_AST) {
                /* do not alter lock refcount.  switching lists. */
-               list_del_init(&lock->list);
-               list_add_tail(&lock->list, &res->granted);
+               list_move_tail(&lock->list, &res->granted);
                mlog(0, "ast: adding to granted list... type=%d, "
                          "convert_type=%d\n", lock->ml.type, lock->ml.convert_type);
                if (lock->ml.convert_type != LKM_IVMODE) {