mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
graph-lock: remove AioContext locking
Stop acquiring/releasing the AioContext lock in bdrv_graph_wrlock()/bdrv_graph_unlock() since the lock no longer has any effect. The distinction between bdrv_graph_wrunlock() and bdrv_graph_wrunlock_ctx() becomes meaningless and they can be collapsed into one function. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-ID: <20231205182011.1976568-6-stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
b5f4fda4fb
commit
6bc30f1949
20 changed files with 133 additions and 193 deletions
|
@ -261,8 +261,8 @@ def gen_no_co_wrapper(func: FuncDecl) -> str:
|
|||
graph_lock=' bdrv_graph_rdlock_main_loop();'
|
||||
graph_unlock=' bdrv_graph_rdunlock_main_loop();'
|
||||
elif func.graph_wrlock:
|
||||
graph_lock=' bdrv_graph_wrlock(NULL);'
|
||||
graph_unlock=' bdrv_graph_wrunlock(NULL);'
|
||||
graph_lock=' bdrv_graph_wrlock();'
|
||||
graph_unlock=' bdrv_graph_wrunlock();'
|
||||
|
||||
return f"""\
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue