Received: from eggs.gnu.org ([2001:4830:134:3::10]:52690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHD4m-0003M8-T2 for qemu-devel@nongnu.org; Fri, 30 Jan 2015 10:01:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHD4h-0005bY-FR for qemu-devel@nongnu.org; Fri, 30 Jan 2015 10:01:40 -0500 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:53062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHD4h-0005bK-9H for qemu-devel@nongnu.org; Fri, 30 Jan 2015 10:01:35 -0500 Received: by mail-wi0-f175.google.com with SMTP id fb4so3673400wid.2 for ; Fri, 30 Jan 2015 07:01:34 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 30 Jan 2015 16:01:12 +0100 Message-Id: <1422630078-18704-6-git-send-email-pbonzini@redhat.com> In-Reply-To: <1422630078-18704-1-git-send-email-pbonzini@redhat.com> References: <1422630078-18704-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 05/11] memory: remove assertion on memory_region_destroy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka From: Jan Kiszka Now that memory_region_destroy can be called from an RCU callback, checking the BQL-protected global memory_region_transaction_depth does not make much sense. Signed-off-by: Jan Kiszka Reviewed-by: Fam Zheng Signed-off-by: Paolo Bonzini --- memory.c | 1 - 1 file changed, 1 deletion(-) diff --git a/memory.c b/memory.c index c343bf3..8c3d8c0 100644 --- a/memory.c +++ b/memory.c @@ -1263,7 +1263,6 @@ static void memory_region_finalize(Object *obj) MemoryRegion *mr = MEMORY_REGION(obj); assert(QTAILQ_EMPTY(&mr->subregions)); - assert(memory_region_transaction_depth == 0); mr->destructor(mr); memory_region_clear_coalescing(mr); g_free((char *)mr->name); -- 1.8.3.1