diff options
author | John Snow <jsnow@redhat.com> | 2018-03-10 03:27:27 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-03-19 12:01:24 +0100 |
commit | 75859b9420906f72c1c6d6273481ff30c141dbd5 (patch) | |
tree | a2f6e91fbe15a7c9531046dfa45d3311b89efb25 /tests/test-blockjob.c | |
parent | d4fce188448a273306b0c1c915e7bd91d6f83a6e (diff) | |
download | qemu-75859b9420906f72c1c6d6273481ff30c141dbd5.zip qemu-75859b9420906f72c1c6d6273481ff30c141dbd5.tar.gz qemu-75859b9420906f72c1c6d6273481ff30c141dbd5.tar.bz2 |
blockjobs: model single jobs as transactions
model all independent jobs as single job transactions.
It's one less case we have to worry about when we add more states to the
transition machine. This way, we can just treat all job lifetimes exactly
the same. This helps tighten assertions of the STM graph and removes some
conditionals that would have been needed in the coming commits adding a
more explicit job lifetime management API.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/test-blockjob.c')
-rw-r--r-- | tests/test-blockjob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-blockjob.c b/tests/test-blockjob.c index 23bdf1a..599e28d 100644 --- a/tests/test-blockjob.c +++ b/tests/test-blockjob.c @@ -30,7 +30,7 @@ static BlockJob *do_test_id(BlockBackend *blk, const char *id, BlockJob *job; Error *errp = NULL; - job = block_job_create(id, &test_block_job_driver, blk_bs(blk), + job = block_job_create(id, &test_block_job_driver, NULL, blk_bs(blk), 0, BLK_PERM_ALL, 0, BLOCK_JOB_DEFAULT, block_job_cb, NULL, &errp); if (should_succeed) { |