qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 6/8] block: do not acquire AioContext in check_to_replace_


From: Paolo Bonzini
Subject: Re: [PATCH v2 6/8] block: do not acquire AioContext in check_to_replace_node
Date: Wed, 5 May 2021 12:10:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 19/04/21 10:55, Emanuele Giuseppe Esposito wrote:
+ *
+ * Called with AioContext lock held.


... for @to_replace_bs.

          aio_context_acquire(replace_aio_context);
+        if (!check_to_replace_node(bs, to_replace_bs, replaces, errp)) {

A release is missing here.

Paolo

+            return;
+        }
          replace_size = bdrv_getlength(to_replace_bs);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]