block/mirror: Pull out mirror_perform()
commit4295c5fc613a6dae55c804b689fdbbeb0c4af816
authorMax Reitz <mreitz@redhat.com>
Wed, 13 Jun 2018 18:18:10 +0000 (13 20:18 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 18 Jun 2018 15:04:43 +0000 (18 17:04 +0200)
treef18baa7a191c5c19d9010f02aca0b649b1e99dc4
parentf45280cbf66d8e58224f6a253d0ae2aa72cc6280
block/mirror: Pull out mirror_perform()

When converting mirror's I/O to coroutines, we are going to need a point
where these coroutines are created.  mirror_perform() is going to be
that point.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20180613181823.13618-2-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/mirror.c