From: shadow Date: Thu, 19 Nov 2009 12:05:53 +0000 (+0000) Subject: avoid unnecessary allocation. X-Git-Tag: GIT_EPOCH_B_HD_KDMU~69 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e7a25f445bc3e20a3b586e72be4a239e8f8e7acb;p=fs%2Flustre-release.git avoid unnecessary allocation. Branch HEAD b=19557 i=vitaly --- diff --git a/lustre/ldlm/ldlm_lock.c b/lustre/ldlm/ldlm_lock.c index eda190b..d9921b5 100644 --- a/lustre/ldlm/ldlm_lock.c +++ b/lustre/ldlm/ldlm_lock.c @@ -1467,6 +1467,9 @@ int ldlm_run_ast_work(struct list_head *rpc_list, ldlm_desc_ast_t ast_type) int ast_count; ENTRY; + if (list_empty(rpc_list)) + RETURN(0); + arg.set = ptlrpc_prep_set(); if (NULL == arg.set) RETURN(-ERESTART);