Skip to content
  • Zhi Yong Wu's avatar
    block: make bdrv_create adopt coroutine · 5b7e1542
    Zhi Yong Wu authored
    
    
    The current qemu.git introduces failure with preallocation and some
    sizes:
    
    qemu-img create -f qcow2 new.img 976563K -o preallocation=metadata
    qemu-img: qemu-coroutine-lock.c:111: qemu_co_mutex_unlock: Assertion
    `mutex->locked == 1' failed.
    
    And lock needs to work in coroutine context. So to fix this issue, we
    need to make bdrv_create adopt coroutine at first.
    
    Signed-off-by: default avatarZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    5b7e1542