projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: call_rcu: teardown default call_rcu worker on application exit
[userspace-rcu.git]
/
src
/
urcu-bp.c
diff --git
a/src/urcu-bp.c
b/src/urcu-bp.c
index 1a437f61cd23f1e0a1486cd766efce5581264259..f886ec40763120847d54aef7a5d61a7a18b807d8 100644
(file)
--- a/
src/urcu-bp.c
+++ b/
src/urcu-bp.c
@@
-121,6
+121,7
@@
static
void __attribute__((constructor)) _urcu_bp_init(void);
static
void __attribute__((destructor)) urcu_bp_exit(void);
void __attribute__((constructor)) _urcu_bp_init(void);
static
void __attribute__((destructor)) urcu_bp_exit(void);
+static void urcu_call_rcu_exit(void);
#ifndef CONFIG_RCU_FORCE_SYS_MEMBARRIER
int urcu_bp_has_sys_membarrier;
#ifndef CONFIG_RCU_FORCE_SYS_MEMBARRIER
int urcu_bp_has_sys_membarrier;
@@
-655,6
+656,8
@@
void _urcu_bp_init(void)
static
void urcu_bp_exit(void)
{
static
void urcu_bp_exit(void)
{
+ urcu_call_rcu_exit();
+
mutex_lock(&init_lock);
if (!--urcu_bp_refcount) {
struct registry_chunk *chunk, *tmp;
mutex_lock(&init_lock);
if (!--urcu_bp_refcount) {
struct registry_chunk *chunk, *tmp;
This page took
0.023624 seconds
and
4
git commands to generate.