Received: from eggs.gnu.org ([2001:4830:134:3::10]:53761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEbx3-00062c-IB for qemu-devel@nongnu.org; Mon, 13 Jul 2015 07:31:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEbwy-0000DC-JY for qemu-devel@nongnu.org; Mon, 13 Jul 2015 07:31:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEbwy-0000D5-Dq for qemu-devel@nongnu.org; Mon, 13 Jul 2015 07:31:08 -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 D2189B8152 for ; Mon, 13 Jul 2015 11:31:07 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-64.ams2.redhat.com [10.36.112.64]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6DBV5MK015701 for ; Mon, 13 Jul 2015 07:31:06 -0400 From: Paolo Bonzini Date: Mon, 13 Jul 2015 13:31:02 +0200 Message-Id: <1436787065-25095-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] rcu: missing thread registration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Patch 2 fixes the problem, whereby threads were not being registered but still happily used RCU. Patch 1 simplifies the registration by making rcu_unregister_thread automatic. Patch 3 avoids having the same bug in the future. Paolo Paolo Bonzini (3): rcu: automatically unregister threads when they exit rcu: actually register threads that have RCU read-side critical sections rcu: detect missing rcu_register_thread() cpus.c | 6 ++++++ include/qemu/rcu.h | 4 +++- iothread.c | 3 +++ migration/migration.c | 3 +++ tests/rcutorture.c | 10 ---------- tests/test-rcu-list.c | 2 ++ util/rcu.c | 30 ++++++++++++++++++++++++++++-- 7 files changed, 45 insertions(+), 13 deletions(-) -- 2.4.3