|
|
383d26 |
From 45cb87c803124a009d401ab959bb4881f84ac4e1 Mon Sep 17 00:00:00 2001
|
|
|
383d26 |
From: John Snow <jsnow@redhat.com>
|
|
|
383d26 |
Date: Mon, 10 Sep 2018 18:17:57 +0200
|
|
|
383d26 |
Subject: [PATCH 19/25] tests/test-blockjob-txn: move .exit to .clean
|
|
|
383d26 |
|
|
|
383d26 |
RH-Author: John Snow <jsnow@redhat.com>
|
|
|
383d26 |
Message-id: <20180910181803.11781-20-jsnow@redhat.com>
|
|
|
383d26 |
Patchwork-id: 82097
|
|
|
383d26 |
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 19/25] tests/test-blockjob-txn: move .exit to .clean
|
|
|
383d26 |
Bugzilla: 1626061
|
|
|
383d26 |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
383d26 |
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
|
|
|
383d26 |
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
383d26 |
|
|
|
383d26 |
The exit callback in this test actually only performs cleanup.
|
|
|
383d26 |
|
|
|
383d26 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
383d26 |
Reviewed-by: Max Reitz <mreitz@redhat.com>
|
|
|
383d26 |
Message-id: 20180906130225.5118-11-jsnow@redhat.com
|
|
|
383d26 |
Reviewed-by: Jeff Cody <jcody@redhat.com>
|
|
|
383d26 |
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
|
|
383d26 |
(cherry picked from commit d498b2b6d6f5a547593a3123c9ed8967965c0c44)
|
|
|
383d26 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
383d26 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
383d26 |
---
|
|
|
383d26 |
tests/test-blockjob-txn.c | 4 ++--
|
|
|
383d26 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
383d26 |
|
|
|
383d26 |
diff --git a/tests/test-blockjob-txn.c b/tests/test-blockjob-txn.c
|
|
|
383d26 |
index ef29f35..86606f9 100644
|
|
|
383d26 |
--- a/tests/test-blockjob-txn.c
|
|
|
383d26 |
+++ b/tests/test-blockjob-txn.c
|
|
|
383d26 |
@@ -24,7 +24,7 @@ typedef struct {
|
|
|
383d26 |
int *result;
|
|
|
383d26 |
} TestBlockJob;
|
|
|
383d26 |
|
|
|
383d26 |
-static void test_block_job_exit(Job *job)
|
|
|
383d26 |
+static void test_block_job_clean(Job *job)
|
|
|
383d26 |
{
|
|
|
383d26 |
BlockJob *bjob = container_of(job, BlockJob, job);
|
|
|
383d26 |
BlockDriverState *bs = blk_bs(bjob->blk);
|
|
|
383d26 |
@@ -73,7 +73,7 @@ static const BlockJobDriver test_block_job_driver = {
|
|
|
383d26 |
.user_resume = block_job_user_resume,
|
|
|
383d26 |
.drain = block_job_drain,
|
|
|
383d26 |
.run = test_block_job_run,
|
|
|
383d26 |
- .exit = test_block_job_exit,
|
|
|
383d26 |
+ .clean = test_block_job_clean,
|
|
|
383d26 |
},
|
|
|
383d26 |
};
|
|
|
383d26 |
|
|
|
383d26 |
--
|
|
|
383d26 |
1.8.3.1
|
|
|
383d26 |
|