qemu-e2k/include/block
Kevin Wolf 1b3ff9feb9 block: GRAPH_RDLOCK for functions only called by co_wrappers
The generated coroutine wrappers already take care to take the lock in
the non-coroutine path, and assume that the lock is already taken in the
coroutine path.

The only thing we need to do for the wrapped function is adding the
GRAPH_RDLOCK annotation. Doing so also allows us to mark the
corresponding callbacks in BlockDriver as GRAPH_RDLOCK_PTR.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20221207131838.239125-19-kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2022-12-15 16:08:23 +01:00
..
accounting.h
aio_task.h
aio-wait.h
aio.h graph-lock: Introduce a lock to protect block graph operations 2022-12-15 16:07:43 +01:00
block_backup.h
block_int-common.h block: GRAPH_RDLOCK for functions only called by co_wrappers 2022-12-15 16:08:23 +01:00
block_int-global-state.h block: assert that graph read and writes are performed correctly 2022-12-15 16:08:23 +01:00
block_int-io.h
block_int.h graph-lock: Introduce a lock to protect block graph operations 2022-12-15 16:07:43 +01:00
block-common.h block-coroutine-wrapper.py: introduce annotations that take the graph rdlock 2022-12-15 16:08:23 +01:00
block-copy.h
block-global-state.h block: Factor out bdrv_drain_all_begin_nopoll() 2022-12-15 16:07:43 +01:00
block-hmp-cmds.h
block-io.h block: use co_wrapper_mixed_bdrv_rdlock in functions taking the rdlock 2022-12-15 16:08:23 +01:00
block.h
blockjob_int.h
blockjob.h
dirty-bitmap.h
export.h
fuse.h
graph-lock.h Mark assert_bdrv_graph_readable/writable() GRAPH_RD/WRLOCK 2022-12-15 16:08:23 +01:00
nbd.h
nvme.h
qapi.h
qdict.h
raw-aio.h
replication.h
reqlist.h
snapshot.h
thread-pool.h
throttle-groups.h
write-threshold.h