Skip to content
Snippets Groups Projects
  • Kevin Wolf's avatar
    ad90feba
    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: default avatarKevin Wolf <kwolf@redhat.com>
    ad90feba
    History
    blockjob: Pause job on draining any job BDS
    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: default avatarKevin Wolf <kwolf@redhat.com>