mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
block: Mark bdrv_amend_options() and callers GRAPH_RDLOCK
This adds GRAPH_RDLOCK annotations to declare that callers of bdrv_amend_options() need to hold a reader lock for the graph. This removes an assume_graph_lock() call in crypto's implementation. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-ID: <20230929145157.45443-14-kwolf@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
4026f1c4f3
commit
bd131d6705
4 changed files with 16 additions and 13 deletions
|
@ -259,12 +259,10 @@ struct BlockDriver {
|
|||
int coroutine_fn GRAPH_UNLOCKED_PTR (*bdrv_co_create_opts)(
|
||||
BlockDriver *drv, const char *filename, QemuOpts *opts, Error **errp);
|
||||
|
||||
int (*bdrv_amend_options)(BlockDriverState *bs,
|
||||
QemuOpts *opts,
|
||||
BlockDriverAmendStatusCB *status_cb,
|
||||
void *cb_opaque,
|
||||
bool force,
|
||||
Error **errp);
|
||||
int GRAPH_RDLOCK_PTR (*bdrv_amend_options)(
|
||||
BlockDriverState *bs, QemuOpts *opts,
|
||||
BlockDriverAmendStatusCB *status_cb, void *cb_opaque,
|
||||
bool force, Error **errp);
|
||||
|
||||
int (*bdrv_make_empty)(BlockDriverState *bs);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue