Vladimir Sementsov-Ogievskiy
7d2410cea1
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>
2020-06-05 09:54:48 +01:00
..
2020-05-19 10:32:14 -05:00
2019-10-10 10:56:18 +02:00
2019-10-10 10:56:17 +02:00
2020-05-18 19:05:25 +02:00
2019-10-10 10:56:18 +02:00
2020-05-08 13:26:35 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2019-09-13 12:18:37 +02:00
2020-05-28 13:16:16 -05:00
2019-05-13 08:58:55 +02:00
2020-03-11 12:42:29 +01:00
2020-05-28 13:15:22 -05:00
2019-06-12 13:20:20 +02:00
2020-05-18 19:05:25 +02:00
2019-06-12 13:20:20 +02:00
2020-05-08 13:26:35 +02:00
2020-05-08 13:26:35 +02:00
2020-05-18 19:05:25 +02:00
2020-05-08 13:26:35 +02:00
2020-06-05 09:54:48 +01:00
2020-06-05 09:54:48 +01:00
2019-06-12 13:18:33 +02:00
2020-05-04 16:07:43 +01:00
2020-03-16 22:07:42 +01:00
2020-03-09 18:05:31 +00:00
2020-05-18 19:05:25 +02:00
2020-05-04 15:16:46 -05:00
2020-05-08 13:26:35 +02:00
2019-10-14 17:12:48 +02:00
2020-05-04 14:43:22 +02:00
2020-05-18 19:05:25 +02:00
2020-03-06 17:15:38 +01:00
2020-02-20 16:43:42 +01:00
2020-05-28 13:16:16 -05:00
2019-10-26 15:38:06 +02:00
2020-04-30 17:51:07 +02:00
2020-05-05 13:17:36 +02:00
2020-05-05 13:17:36 +02:00
2020-05-13 14:20:31 +02:00
2020-05-28 13:16:16 -05:00
2020-05-28 13:16:16 -05:00
2020-05-18 19:05:25 +02:00
2019-04-30 15:29:00 +02:00
2019-04-30 15:29:00 +02:00
2020-05-18 19:05:25 +02:00
2019-04-30 15:29:00 +02:00
2020-05-18 19:05:25 +02:00
2020-05-28 13:16:16 -05:00
2020-05-08 13:26:35 +02:00
2020-05-18 19:05:25 +02:00
2020-05-08 13:26:35 +02:00
2019-12-18 08:43:19 +01:00
2020-05-08 13:26:35 +02:00
2020-03-09 15:59:31 +01:00
2020-05-15 07:07:58 +02:00
2020-05-18 19:05:25 +02:00
2020-03-11 12:42:30 +01:00
2020-05-18 19:05:25 +02:00
2019-06-12 13:20:20 +02:00
2020-04-30 17:51:07 +02:00
2020-05-18 19:05:25 +02:00
2019-04-30 15:29:00 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2019-10-14 17:12:48 +02:00
2019-06-12 13:18:33 +02:00