On 03.02.22 15:05, Kevin Wolf wrote:
bdrv_subtree_drained_end() requires the caller to hold the AioContext
lock for the drained node. Not doing this for nodes outside of the main
AioContext leads to crashes when AIO_WAIT_WHILE() needs to wait and
tries to temporarily release the lock.

Fixes: 3908b7a8994fa5ef7a89aa58cd5a02fc58141592
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2046659
Reported-by: Qing Wang <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
---
  blockdev.c | 11 ++++++++++-
  1 file changed, 10 insertions(+), 1 deletion(-)

Reviewed-by: Hanna Reitz <[email protected]>


Reply via email to