Searched hist:"91 fddb0db6fee207ccdcca22dd996cf0154a1004" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | blockdev.c | diff 91fddb0db6fee207ccdcca22dd996cf0154a1004 Tue Oct 21 06:03:52 CDT 2014 Stefan Hajnoczi <stefanha@redhat.com> blockdev: acquire AioContext in blockdev_mark_auto_del()
When an emulated storage controller is unrealized it will call blockdev_mark_auto_del(). This will cancel any running block job (and that eventually releases its reference to the BDS so it can be freed).
Since the block job may be executing in another AioContext we must acquire/release to ensure thread safety.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 1413889440-32577-4-git-send-email-stefanha@redhat.com
|