mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
block: remove bdrv_try_set_aio_context and replace it with bdrv_try_change_aio_context
No functional change intended. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20221025084952.2139888-11-eesposit@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
a41cfda126
commit
142e690712
8 changed files with 27 additions and 35 deletions
2
job.c
2
job.c
|
@ -588,7 +588,7 @@ static void coroutine_fn job_do_yield_locked(Job *job, uint64_t ns)
|
|||
next_aio_context = job->aio_context;
|
||||
/*
|
||||
* Coroutine has resumed, but in the meanwhile the job AioContext
|
||||
* might have changed via bdrv_try_set_aio_context(), so we need to move
|
||||
* might have changed via bdrv_try_change_aio_context(), so we need to move
|
||||
* the coroutine too in the new aiocontext.
|
||||
*/
|
||||
while (qemu_get_current_aio_context() != next_aio_context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue