diff options
| author | Vladimir Sementsov-Ogievskiy | 2020-05-20 16:49:01 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2020-06-05 10:54:48 +0200 |
| commit | 7d2410cea154bf915fb30179ebda3b17ac36e70e (patch) | |
| tree | c305b58c3a342dfdfcf86d3c103b0fb0c24a9767 /include | |
| parent | exec: Rename qemu_ram_writeback() as qemu_ram_msync() (diff) | |
| download | qemu-7d2410cea154bf915fb30179ebda3b17ac36e70e.tar.gz qemu-7d2410cea154bf915fb30179ebda3b17ac36e70e.tar.xz qemu-7d2410cea154bf915fb30179ebda3b17ac36e70e.zip | |
block: Factor out bdrv_run_co()
We have a few bdrv_*() functions that can either spawn a new coroutine
and wait for it with BDRV_POLL_WHILE() or use a fastpath if they are
alreeady running in a coroutine. All of them duplicate basically the
same code.
Factor the common code into a new function bdrv_run_co().
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20200520144901.16589-1-vsementsov@virtuozzo.com
[Factor out bdrv_run_co_entry too]
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
