• J
    blockjob: add .start field · a7815a76
    John Snow 提交于
    Add an explicit start field to specify the entrypoint. We already have
    ownership of the coroutine itself AND managing the lifetime of the
    coroutine, let's take control of creation of the coroutine, too.
    
    This will allow us to delay creation of the actual coroutine until we
    know we'll actually start a BlockJob in block_job_start. This avoids
    the sticky question of how to "un-create" a Coroutine that hasn't been
    started yet.
    Signed-off-by: NJohn Snow <jsnow@redhat.com>
    Reviewed-by: NKevin Wolf <kwolf@redhat.com>
    Message-id: 1478587839-9834-4-git-send-email-jsnow@redhat.com
    Signed-off-by: NJeff Cody <jcody@redhat.com>
    a7815a76
mirror.c 36.0 KB