• Kevin Wolf's avatar
    blockjob: Pause job on draining any job BDS · ad90feba
    Kevin Wolf authored
    Block jobs already paused themselves when their main BlockBackend
    entered a drained section. This is not good enough: We also want to
    pause a block job and may not submit new requests if, for example, the
    mirror target node should be drained.
    
    This implements .drained_begin/end callbacks in child_job in order to
    consider all block nodes related to the job, and removes the
    BlockBackend callbacks which are unnecessary now because the root of the
    job main BlockBackend is always referenced with a child_job, too.
    Signed-off-by: 's avatarKevin Wolf <kwolf@redhat.com>
    ad90feba
blockjob.c 26.2 KB