Whamcloud - gitweb
LU-4423 ptlrpc: use list_move where appropriate.
[fs/lustre-release.git] / lustre / ldlm / ldlm_request.c
index 4d56e97..df59c6b 100644 (file)
@@ -1688,8 +1688,7 @@ int ldlm_cli_cancel_list_local(struct list_head *cancels, int count,
                 */
                if (!(cancel_flags & LCF_BL_AST) && (rc == LDLM_FL_BL_AST)) {
                        LDLM_DEBUG(lock, "Cancel lock separately");
-                       list_del_init(&lock->l_bl_ast);
-                       list_add(&lock->l_bl_ast, &head);
+                       list_move(&lock->l_bl_ast, &head);
                        bl_ast++;
                        continue;
                }