Whamcloud - gitweb
avoid unnecessary allocation.
authorshadow <shadow>
Thu, 19 Nov 2009 12:05:53 +0000 (12:05 +0000)
committershadow <shadow>
Thu, 19 Nov 2009 12:05:53 +0000 (12:05 +0000)
Branch HEAD
b=19557
i=vitaly

lustre/ldlm/ldlm_lock.c

index eda190b..d9921b5 100644 (file)
@@ -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);