test-blockjob: Acquire AioContext around job_cancel_sync()
commit30c070a547322a5e41ce129d540bca3653b1a9c8
authorKevin Wolf <kwolf@redhat.com>
Fri, 17 Aug 2018 15:29:08 +0000 (17 17:29 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 25 Sep 2018 13:50:15 +0000 (25 15:50 +0200)
treeb23c83d6c288b8c8cf1c15d6bf2c81f10518aa4b
parentf62c172959cd2b6de4dd8ba782e855d64d94764b
test-blockjob: Acquire AioContext around job_cancel_sync()

All callers in QEMU proper hold the AioContext lock when calling
job_finish_sync(). test-blockjob should do the same when it calls the
function indirectly through job_cancel_sync().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
include/qemu/job.h
tests/test-blockjob.c