Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af8bcd8
)
avoid unnecessary allocation.
author
shadow
<shadow>
Thu, 19 Nov 2009 12:05:53 +0000
(12:05 +0000)
committer
shadow
<shadow>
Thu, 19 Nov 2009 12:05:53 +0000
(12:05 +0000)
Branch HEAD
b=19557
i=vitaly
lustre/ldlm/ldlm_lock.c
patch
|
blob
|
history
diff --git
a/lustre/ldlm/ldlm_lock.c
b/lustre/ldlm/ldlm_lock.c
index
eda190b
..
d9921b5
100644
(file)
--- 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);