summary refs log tree commit diff stats
path: root/scripts/qapi/error.py
diff options
context:
space:
mode:
authorStefan Reiter <s.reiter@proxmox.com>2020-04-07 13:56:50 +0200
committerKevin Wolf <kwolf@redhat.com>2020-04-07 14:34:47 +0200
commit08558e33257ec796594bd411261028a93414a70c (patch)
tree9a0956ea93cb9bbab75832fffc3a1f14c4c29662 /scripts/qapi/error.py
parentb660a84bbb0eb1a76b505648d31d5e82594fb75e (diff)
downloadfocaccia-qemu-08558e33257ec796594bd411261028a93414a70c.tar.gz
focaccia-qemu-08558e33257ec796594bd411261028a93414a70c.zip
replication: assert we own context before job_cancel_sync
job_cancel_sync requires the job's lock to be held, all other callers
already do this (replication_stop, drive_backup_abort,
blockdev_backup_abort, job_cancel_sync_all, cancel_common).

In this case we're in a BlockDriver handler, so we already have a lock,
just assert that it is the same as the one used for the commit_job.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Message-Id: <20200407115651.69472-3-s.reiter@proxmox.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi/error.py')
0 files changed, 0 insertions, 0 deletions