qemu-e2k/block
Steve Sistare c8a7fc5179 migration: simplify blockers
Modify migrate_add_blocker and migrate_del_blocker to take an Error **
reason.  This allows migration to own the Error object, so that if
an error occurs in migrate_add_blocker, migration code can free the Error
and clear the client handle, simplifying client code.  It also simplifies
the migrate_del_blocker call site.

In addition, this is a pre-requisite for a proposed future patch that would
add a mode argument to migration requests to support live update, and
maintain a list of blockers for each mode.  A blocker may apply to a single
mode or to multiple modes, and passing Error** will allow one Error object
to be registered for multiple modes.

No functional change.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Tested-by: Michael Galaxy <mgalaxy@akamai.com>
Reviewed-by: Michael Galaxy <mgalaxy@akamai.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <1697634216-84215-1-git-send-email-steven.sistare@oracle.com>
2023-10-20 08:51:41 +02:00
..
export
monitor block: Mark bdrv_op_is_blocked() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
accounting.c
aio_task.c
amend.c
backup.c
blkdebug.c
blkio.c
blklogwrites.c
blkreplay.c
blkverify.c
block-backend.c block: Mark bdrv_op_is_blocked() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
block-copy.c
block-gen.h
block-ram-registrar.c
bochs.c block: Mark bdrv_apply_auto_read_only() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
cloop.c block: Mark bdrv_apply_auto_read_only() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
commit.c block: Mark bdrv_op_is_blocked() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
copy-before-write.c
copy-before-write.h
copy-on-read.c
copy-on-read.h
coroutines.h
create.c
crypto.c
crypto.h
curl.c block: Mark bdrv_apply_auto_read_only() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
dirty-bitmap.c
dmg-bz2.c
dmg-lzfse.c
dmg.c block: Mark bdrv_apply_auto_read_only() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
dmg.h
file-posix.c
file-win32.c
filter-compress.c
gluster.c block: Mark bdrv_apply_auto_read_only() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
graph-lock.c block: Add assertion for bdrv_graph_wrlock() 2023-10-12 16:31:33 +02:00
io_uring.c
io.c
iscsi-opts.c
iscsi.c block: Mark bdrv_apply_auto_read_only() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
linux-aio.c
meson.build
mirror.c
nbd.c block: Mark bdrv_apply_auto_read_only() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
nfs.c
null.c
nvme.c
parallels-ext.c
parallels.c migration: simplify blockers 2023-10-20 08:51:41 +02:00
parallels.h
plug.c
preallocate.c
progress_meter.c
qapi-sysemu.c block: Mark bdrv_op_is_blocked() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
qapi.c
qcow2-bitmap.c qcow2: Mark check_constraints_on_bitmap() GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
qcow2-cache.c qcow2: Mark qcow2_signal_corruption() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
qcow2-cluster.c qcow2: Mark qcow2_signal_corruption() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
qcow2-refcount.c qcow2: Mark qcow2_signal_corruption() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
qcow2-snapshot.c
qcow2-threads.c
qcow2.c qcow2: Mark qcow2_inactivate() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
qcow2.h qcow2: Mark qcow2_signal_corruption() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
qcow.c migration: simplify blockers 2023-10-20 08:51:41 +02:00
qed-check.c
qed-cluster.c
qed-l2-cache.c
qed-table.c
qed.c
qed.h
quorum.c
raw-format.c
rbd.c block: Mark bdrv_apply_auto_read_only() and callers GRAPH_RDLOCK 2023-10-12 16:31:33 +02:00
replication.c block: Protect bs->children with graph_lock 2023-10-12 16:31:33 +02:00
reqlist.c
snapshot-access.c
snapshot.c
ssh.c
stream.c
throttle-groups.c
throttle.c
trace-events
trace.h
vdi.c migration: simplify blockers 2023-10-20 08:51:41 +02:00
vhdx-endian.c
vhdx-log.c
vhdx.c migration: simplify blockers 2023-10-20 08:51:41 +02:00
vhdx.h
vmdk.c migration: simplify blockers 2023-10-20 08:51:41 +02:00
vpc.c migration: simplify blockers 2023-10-20 08:51:41 +02:00
vvfat.c migration: simplify blockers 2023-10-20 08:51:41 +02:00
win32-aio.c
write-threshold.c