Received: from eggs.gnu.org ([2001:4830:134:3::10]:36967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcBrN-0003fT-58 for qemu-devel@nongnu.org; Wed, 16 Sep 2015 08:30:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcBrL-0005mQ-O9 for qemu-devel@nongnu.org; Wed, 16 Sep 2015 08:30:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcBrL-0005mF-Ig for qemu-devel@nongnu.org; Wed, 16 Sep 2015 08:30:47 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 53B242EB for ; Wed, 16 Sep 2015 12:30:47 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-66.ams2.redhat.com [10.36.112.66]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8GCTuNu027671 for ; Wed, 16 Sep 2015 08:30:46 -0400 From: Paolo Bonzini Date: Wed, 16 Sep 2015 14:29:55 +0200 Message-Id: <1442406595-14296-25-git-send-email-pbonzini@redhat.com> In-Reply-To: <1442406595-14296-1-git-send-email-pbonzini@redhat.com> References: <1442406595-14296-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 24/24] Revert "rcu: init rcu_registry_lock after fork" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This reverts commit 5243722376873a48e9852a58b91f4d4101ee66e4. The patch forgot about rcu_sync_lock and was committed by mistake. Reported-by: Laszlo Ersek Signed-off-by: Paolo Bonzini --- 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