tests: Lock AioContexts in test-block-iothread
commit1b285657687c7f08761759092fa05fa33578fc00
authorMax Reitz <mreitz@redhat.com>
Fri, 19 Jul 2019 09:26:13 +0000 (19 11:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 Jul 2019 11:19:16 +0000 (19 13:19 +0200)
tree4cddc465ff9b0adb3ed2d25f204ce1d29ef52dda
parentf4c8a43be080fc919bc1ba18e70d83eb0e5be7ec
tests: Lock AioContexts in test-block-iothread

When changing a node's AioContext, the caller must acquire the old
AioContext (unless it currently runs in that old context).  Therefore,
unless the node currently is in the main context, we always have to
acquire the old context around calls that may change a node's
AioContext.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/test-block-iothread.c