Skip to content
Snippets Groups Projects
  • Kevin Wolf's avatar
    b69f777d
    job: Add job_drain() · b69f777d
    Kevin Wolf authored
    
    block_job_drain() contains a blk_drain() call which cannot be moved to
    Job, so add a new JobDriver callback JobDriver.drain which has a common
    implementation for all BlockJobs. In addition to this we keep the
    existing BlockJobDriver.drain callback that is called by the common
    drain implementation for all block jobs.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    b69f777d
    History
    job: Add job_drain()
    Kevin Wolf authored
    
    block_job_drain() contains a blk_drain() call which cannot be moved to
    Job, so add a new JobDriver callback JobDriver.drain which has a common
    implementation for all BlockJobs. In addition to this we keep the
    existing BlockJobDriver.drain callback that is called by the common
    drain implementation for all block jobs.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>