projects
/
userspace-rcu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ef1bfb
)
urcu,call_rcu: avoid create call_rcu_data for child when unneed
author
Lai Jiangshan
<laijs@cn.fujitsu.com>
Thu, 29 Sep 2011 17:55:11 +0000
(13:55 -0400)
committer
Mathieu Desnoyers
<mathieu.desnoyers@efficios.com>
Thu, 29 Sep 2011 17:55:11 +0000
(13:55 -0400)
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-call-rcu-impl.h
patch
|
blob
|
blame
|
history
diff --git
a/urcu-call-rcu-impl.h
b/urcu-call-rcu-impl.h
index d5b75c076de22de777244cc26fb86f0791f898a5..d964c474156473c43b6bbff4f69abf5d06355e57 100644
(file)
--- a/
urcu-call-rcu-impl.h
+++ b/
urcu-call-rcu-impl.h
@@
-677,6
+677,10
@@
void call_rcu_after_fork_child(void)
/* Release the mutex. */
call_rcu_unlock(&call_rcu_mutex);
+ /* Do nothing when call_rcu() has not been used */
+ if (cds_list_empty(&call_rcu_data_list))
+ return;
+
/*
* Allocate a new default call_rcu_data structure in order
* to get a working call_rcu thread to go with it.
This page took
0.025616 seconds
and
4
git commands to generate.