On 01.10.2014 19:01, Stefan Hajnoczi wrote:
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 <stefa...@redhat.com>
---
blockdev.c | 7 +++++++
1 file changed, 7 insertions(+)
Reviewed-by: Max Reitz <mre...@redhat.com>