OSDN Git Service

blockjob: Propagate AioContext change to all job nodes
authorKevin Wolf <kwolf@redhat.com>
Mon, 6 May 2019 17:18:03 +0000 (19:18 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 20 May 2019 15:08:56 +0000 (17:08 +0200)
commit9ff7f0df8757c1c6ca582935c27db377a1eaeb22
tree1b3aefe5b5f0b9090dab28ce173d12e687bf34c6
parent980b0f943aad9240f276d7e48e2cf92ae4eb61ca
blockjob: Propagate AioContext change to all job nodes

Block jobs require that all of the nodes the job is using are in the
same AioContext. Therefore all BdrvChild objects of the job propagate
.(can_)set_aio_context to all other job nodes, so that the switch is
checked and performed consistently even if both nodes are in different
subtrees.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/backup.c
block/mirror.c
blockjob.c