From: Robert Read Date: Mon, 28 Jun 2010 18:00:18 +0000 (-0700) Subject: Revert "b=22244 handle list of locks in ldlm_bl_thread_main properly" X-Git-Tag: v2_0_0-rc1~10 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=3b9ad5d39a63abd33128e3395919ed15d7df113b Revert "b=22244 handle list of locks in ldlm_bl_thread_main properly" This reverts commit f2360643cbb8136f97ec750547d12c30f88e0d4d. Reverting because of dependency on bug 21128. --- diff --git a/lustre/ldlm/ldlm_lockd.c b/lustre/ldlm/ldlm_lockd.c index ac83fa8..8358d58 100644 --- a/lustre/ldlm/ldlm_lockd.c +++ b/lustre/ldlm/ldlm_lockd.c @@ -2222,15 +2222,14 @@ static int ldlm_bl_thread_main(void *arg) } 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. */ - 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); diff --git a/lustre/ldlm/ldlm_request.c b/lustre/ldlm/ldlm_request.c index 13e3a6d..4c7f180 100644 --- a/lustre/ldlm/ldlm_request.c +++ b/lustre/ldlm/ldlm_request.c @@ -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, - 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);