OSDN Git Service

migration/rdma: Check for postcopy sooner
authorJuan Quintela <quintela@redhat.com>
Thu, 4 May 2023 11:44:43 +0000 (13:44 +0200)
committerJuan Quintela <quintela@redhat.com>
Thu, 4 May 2023 23:04:33 +0000 (01:04 +0200)
commitcd01a602312ac02aed9aba4ef73b8b890274094c
treeec1434be27c54bb3f783364edbe9120be27ad970
parent8c90815797af2ae6444a2722b19f7bdaf73b5458
migration/rdma: Check for postcopy sooner

It makes no sense first try to see if there is an rdma error and then
do nothing on postcopy stage.  Change it so we check we are in
postcopy before doing anything.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230504114443.23891-6-quintela@redhat.com>
migration/rdma.c