Re: [PATCH 3/3] blockdev: mirror: avoid potential deadlock when using iothread

2023-10-20 Thread Fiona Ebner
Am 19.10.23 um 15:19 schrieb Fiona Ebner: > The bdrv_getlength() function is a generated co-wrapper and uses > AIO_WAIT_WHILE() to wait for the spawned coroutine. AIO_WAIT_WHILE() > expects the lock to be acquired exactly once. > > This can happen when the source node is explicitly specified as

[PATCH 3/3] blockdev: mirror: avoid potential deadlock when using iothread

2023-10-19 Thread Fiona Ebner
The bdrv_getlength() function is a generated co-wrapper and uses AIO_WAIT_WHILE() to wait for the spawned coroutine. AIO_WAIT_WHILE() expects the lock to be acquired exactly once. This can happen when the source node is explicitly specified as the @replaces parameter or if there is a filter on