On Thu, 01/22 15:47, Paolo Bonzini wrote:
> From: Jan Kiszka <jan.kis...@siemens.com>
> 
> 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 <jan.kis...@siemens.com>
> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
> ---
>  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
> 
> 

Reviewed-by: Fam Zheng <f...@redhat.com>

Reply via email to