Whamcloud - gitweb
Revert "b=22244 handle list of locks in ldlm_bl_thread_main properly"
authorRobert Read <robert.read@oracle.com>
Mon, 28 Jun 2010 18:00:18 +0000 (11:00 -0700)
committerRobert Read <robert.read@oracle.com>
Mon, 28 Jun 2010 18:00:18 +0000 (11:00 -0700)
This reverts commit f2360643cbb8136f97ec750547d12c30f88e0d4d.

Reverting because of dependency on bug 21128.

lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c

index ac83fa8..8358d58 100644 (file)
@@ -2222,15 +2222,14 @@ static int ldlm_bl_thread_main(void *arg)
                 }
 
                 if (blwi->blwi_count) {
                 }
 
                 if (blwi->blwi_count) {
-                        int count;
                         /* The special case when we cancel locks in lru
                          * asynchronously, we pass the list of locks here.
                          * Thus locks are marked LDLM_FL_CANCELING, but NOT
                          * canceled locally yet. */
                         /* The special case when we cancel locks in lru
                          * asynchronously, we pass the list of locks here.
                          * Thus locks are marked LDLM_FL_CANCELING, but NOT
                          * canceled locally yet. */
-                        count = ldlm_cli_cancel_list_local(&blwi->blwi_head,
-                                                           blwi->blwi_count,
-                                                           LCF_BL_AST);
-                        ldlm_cli_cancel_list(&blwi->blwi_head, count, NULL, 0);
+                        ldlm_cli_cancel_list_local(&blwi->blwi_head,
+                                                   blwi->blwi_count, 0);
+                        ldlm_cli_cancel_list(&blwi->blwi_head,
+                                             blwi->blwi_count, NULL, 0);
                 } else {
                         ldlm_handle_bl_callback(blwi->blwi_ns, &blwi->blwi_ld,
                                                 blwi->blwi_lock);
                 } else {
                         ldlm_handle_bl_callback(blwi->blwi_ns, &blwi->blwi_ld,
                                                 blwi->blwi_lock);
index 13e3a6d..4c7f180 100644 (file)
@@ -1751,7 +1751,7 @@ int ldlm_cli_cancel_unused_resource(struct ldlm_namespace *ns,
 
         LDLM_RESOURCE_ADDREF(res);
         count = ldlm_cancel_resource_local(res, &cancels, policy, mode,
 
         LDLM_RESOURCE_ADDREF(res);
         count = ldlm_cancel_resource_local(res, &cancels, policy, mode,
-                                           0, flags | LCF_BL_AST, opaque);
+                                           0, flags, opaque);
         rc = ldlm_cli_cancel_list(&cancels, count, NULL, flags);
         if (rc != ELDLM_OK)
                 CERROR("ldlm_cli_cancel_unused_resource: %d\n", rc);
         rc = ldlm_cli_cancel_list(&cancels, count, NULL, flags);
         if (rc != ELDLM_OK)
                 CERROR("ldlm_cli_cancel_unused_resource: %d\n", rc);