mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
include/block/block_int: split header into I/O and global state API
Similarly to the previous patch, split block_int.h in block_int-io.h and block_int-global-state.h block_int-common.h contains the structures shared between the two headers, and the functions that can't be categorized as I/O or global state. Assertions are added in the next patch. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Message-Id: <20220303151616.325444-12-eesposit@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
committed by
Kevin Wolf
parent
862fded928
commit
ebc2752b08
@@ -63,6 +63,7 @@
|
||||
#include "qemu/main-loop.h"
|
||||
#include "qemu/throttle-options.h"
|
||||
|
||||
/* Protected by BQL */
|
||||
QTAILQ_HEAD(, BlockDriverState) monitor_bdrv_states =
|
||||
QTAILQ_HEAD_INITIALIZER(monitor_bdrv_states);
|
||||
|
||||
@@ -1175,6 +1176,8 @@ typedef struct BlkActionState BlkActionState;
|
||||
*
|
||||
* Only prepare() may fail. In a single transaction, only one of commit() or
|
||||
* abort() will be called. clean() will always be called if it is present.
|
||||
*
|
||||
* Always run under BQL.
|
||||
*/
|
||||
typedef struct BlkActionOps {
|
||||
size_t instance_size;
|
||||
@@ -2284,6 +2287,8 @@ static TransactionProperties *get_transaction_properties(
|
||||
/*
|
||||
* 'Atomic' group operations. The operations are performed as a set, and if
|
||||
* any fail then we roll back all operations in the group.
|
||||
*
|
||||
* Always run under BQL.
|
||||
*/
|
||||
void qmp_transaction(TransactionActionList *dev_list,
|
||||
bool has_props,
|
||||
|
||||
Reference in New Issue
Block a user