-
Paolo Bonzini authored
Job pausing reuses the existing support for cancellable sleeps. A pause happens at the next sleeping point and lasts until the coroutine is re-entered explicitly. Cancellation was already doing a forced resume, so implement it explicitly in terms of resume. Paused jobs cannot be canceled without first resuming them. This ensures that I/O errors are never missed by management. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by:
Eric Blake <eblake@redhat.com>
Signed-off-by:
Kevin Wolf <kwolf@redhat.com>Paolo Bonzini authoredJob pausing reuses the existing support for cancellable sleeps. A pause happens at the next sleeping point and lasts until the coroutine is re-entered explicitly. Cancellation was already doing a forced resume, so implement it explicitly in terms of resume. Paused jobs cannot be canceled without first resuming them. This ensures that I/O errors are never missed by management. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by:
Eric Blake <eblake@redhat.com>
Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Loading