block: acquire AioContext in qmp_block_resize()
commit927e0e769f4008f458de8a94a809e85c1fd016eb
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 18 Aug 2014 13:52:28 +0000 (18 14:52 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 20 Aug 2014 09:53:42 +0000 (20 11:53 +0200)
treea3ffc9b70aca58ac6afcc289c9e2cb2e565ecf27
parent6ffb4cb6fd2046e2efb658fb0136e22e4cd0c670
block: acquire AioContext in qmp_block_resize()

Make block_resize safe for dataplane where another thread may be running
the BlockDriverState's AioContext.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c