]> git.proxmox.com Git - mirror_qemu.git/commit
blockdev: qmp_transaction: drop extra generic layer
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Wed, 10 May 2023 15:06:24 +0000 (18:06 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 May 2023 17:12:12 +0000 (19:12 +0200)
commitd53c89aed1d25b8a9d98b3904e9226bda699adf1
tree383cbdcb4b8864120a5cab7da44a9af822472d93
parentc85feafa98e3f7835407d39bf5bfadf13f32075f
blockdev: qmp_transaction: drop extra generic layer

Let's simplify things:

First, actions generally don't need access to common BlkActionState
structure. The only exclusion are backup actions that need
block_job_txn.

Next, for transaction actions of Transaction API is more native to
allocated state structure in the action itself.

So, do the following transformation:

1. Let all actions be represented by a function with corresponding
   structure as arguments.

2. Instead of array-map marshaller, let's make a function, that calls
   corresponding action directly.

3. BlkActionOps and BlkActionState structures become unused

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-Id: <20230510150624.310640-7-vsementsov@yandex-team.ru>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c