Searched hist:d53c89aed1d25b8a9d98b3904e9226bda699adf1 (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/ |
H A D | blockdev.c | diff d53c89aed1d25b8a9d98b3904e9226bda699adf1 Wed May 10 10:06:24 CDT 2023 Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> 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>
|