From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHDMo-0006bW-Bl for qemu-devel@nongnu.org; Fri, 30 Jan 2015 10:20:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHDMi-0005Cu-Ud for qemu-devel@nongnu.org; Fri, 30 Jan 2015 10:20:18 -0500 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:54421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHDMi-0005Cp-P9 for qemu-devel@nongnu.org; Fri, 30 Jan 2015 10:20:12 -0500 Received: by mail-wi0-f169.google.com with SMTP id h11so3596296wiw.0 for ; Fri, 30 Jan 2015 07:20:12 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 30 Jan 2015 16:19:51 +0100 Message-Id: <1422631197-26063-6-git-send-email-pbonzini@redhat.com> In-Reply-To: <1422631197-26063-1-git-send-email-pbonzini@redhat.com> References: <1422631197-26063-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