[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 24/24] Revert "rcu: init rcu_registry_lock after fork
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 24/24] Revert "rcu: init rcu_registry_lock after fork" |
Date: |
Wed, 16 Sep 2015 14:29:55 +0200 |
This reverts commit 5243722376873a48e9852a58b91f4d4101ee66e4.
The patch forgot about rcu_sync_lock and was committed by mistake.
Reported-by: Laszlo Ersek <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
util/rcu.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/util/rcu.c b/util/rcu.c
index 47c2bce..8ba304d 100644
--- a/util/rcu.c
+++ b/util/rcu.c
@@ -335,11 +335,6 @@ static void rcu_init_unlock(void)
qemu_mutex_unlock(&rcu_registry_lock);
qemu_mutex_unlock(&rcu_sync_lock);
}
-
-static void rcu_init_child(void)
-{
- qemu_mutex_init(&rcu_registry_lock);
-}
#endif
void rcu_after_fork(void)
@@ -351,7 +346,7 @@ void rcu_after_fork(void)
static void __attribute__((__constructor__)) rcu_init(void)
{
#ifdef CONFIG_POSIX
- pthread_atfork(rcu_init_lock, rcu_init_unlock, rcu_init_child);
+ pthread_atfork(rcu_init_lock, rcu_init_unlock, rcu_init_unlock);
#endif
rcu_init_complete();
}
--
2.5.0
- Re: [Qemu-devel] [PULL 16/24] tcg: Move tci_tb_ptr to -common, (continued)
[Qemu-devel] [PULL 15/24] tcg: split tcg_op_defs to -common, Paolo Bonzini, 2015/09/16
[Qemu-devel] [PULL 09/24] monitor: remove target-specific code from monitor.c, Paolo Bonzini, 2015/09/16
[Qemu-devel] [PULL 18/24] cputlb: move CPU_LOOP() for tlb_reset() to exec.c, Paolo Bonzini, 2015/09/16
[Qemu-devel] [PULL 17/24] translate: move real_host_page setting to -common, Paolo Bonzini, 2015/09/16
[Qemu-devel] [PULL 19/24] cputlb: Change tlb_set_dirty() arg to cpu, Paolo Bonzini, 2015/09/16
[Qemu-devel] [PULL 21/24] monitor: uninclude cpu_ldst, Paolo Bonzini, 2015/09/16
[Qemu-devel] [PULL 24/24] Revert "rcu: init rcu_registry_lock after fork",
Paolo Bonzini <=
[Qemu-devel] [PULL 22/24] checkpatch: Escape left braces in regex, Paolo Bonzini, 2015/09/16
[Qemu-devel] [PULL 23/24] nbd: release exp->blk after all clients are closed, Paolo Bonzini, 2015/09/16
[Qemu-devel] [PULL 20/24] include/exec: Move cputlb exec.c defs out, Paolo Bonzini, 2015/09/16
Re: [Qemu-devel] [PULL 00/24] Misc patches for 2015-09-16, Eric Blake, 2015/09/16
Re: [Qemu-devel] [PULL 00/24] Misc patches for 2015-09-16, Peter Maydell, 2015/09/16