From: johann Date: Thu, 6 Dec 2007 11:32:42 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_8_0_110~932 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=78ba3cda3fa3cf7126a646d5701910f63ed964c5;p=fs%2Flustre-release.git Branch b1_6 b=13843 i=adilger i=nathan Fix coding style. (Dynamically create DLM blocking callback threads) --- diff --git a/lustre/ldlm/ldlm_lockd.c b/lustre/ldlm/ldlm_lockd.c index dc1756b..72240f8 100644 --- a/lustre/ldlm/ldlm_lockd.c +++ b/lustre/ldlm/ldlm_lockd.c @@ -1701,10 +1701,11 @@ static int ldlm_bl_thread_main(void *arg) busy >= atomic_read(&blp->blp_num_threads))) /* discard the return value, we tried */ ldlm_bl_thread_start(blp); - } else + } else { if (blwi->blwi_ns == NULL) /* added by ldlm_cleanup() */ break; + } if (blwi->blwi_flags == LDLM_FL_CANCELING) { /* The special case when we cancel locks in lru @@ -1718,9 +1719,10 @@ static int ldlm_bl_thread_main(void *arg) ldlm_cli_cancel_req(blwi->blwi_lock->l_conn_export, &head, 1); LDLM_LOCK_PUT(blwi->blwi_lock); - } else + } else { ldlm_handle_bl_callback(blwi->blwi_ns, &blwi->blwi_ld, blwi->blwi_lock); + } OBD_FREE(blwi, sizeof(*blwi)); }