mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
Revert "rcu: do not create thread in pthread_atfork callback"
This reverts commit a59629fcc6
.
This is not needed anymore because the IOThread mutex is not
"magic" anymore (need not kick the CPU thread)and also because
fork callbacks are only enabled at the very beginning of
QEMU's execution.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
73c6e4013b
commit
2a96a552f9
4 changed files with 7 additions and 7 deletions
|
@ -6354,7 +6354,6 @@ static int do_fork(CPUArchState *env, unsigned int flags, abi_ulong newsp,
|
|||
ret = fork();
|
||||
if (ret == 0) {
|
||||
/* Child Process. */
|
||||
rcu_after_fork();
|
||||
cpu_clone_regs(env, newsp);
|
||||
fork_end(1);
|
||||
/* There is a race condition here. The parent process could
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue