]> git.proxmox.com Git - mirror_qemu.git/commit - migration/rdma.c
migration/rdma: Allow cancelling while waiting for wrid
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 17 Jul 2017 11:09:34 +0000 (12:09 +0100)
committerJuan Quintela <quintela@redhat.com>
Tue, 18 Jul 2017 15:36:17 +0000 (17:36 +0200)
commit9c98cfbe72b21d9d84b9ea8d231bde103b9fb7ae
treed8bd7049b08e2de3267d674e3c27a4fa682cd503
parent0b3c15f09715acd78063e720444cc86ac357bab4
migration/rdma: Allow cancelling while waiting for wrid

When waiting for a WRID, if the other side dies we end up waiting
for ever with no way to cancel the migration.
Cure this by poll()ing the fd first with a timeout and checking
error flags and migration state.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20170717110936.23314-5-dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/rdma.c