migration: Wait for blocking IO
commit4d22c148c989f80e4377233bed886e96d85ef645
authorJuan Quintela <quintela@redhat.com>
Tue, 17 Apr 2018 22:38:17 +0000 (18 00:38 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 27 Jun 2018 11:28:11 +0000 (27 13:28 +0200)
tree4e1c8924652416d96cd0f588e1d43721818df6fe
parent8b2db7f5fd9566ab9cf22b02b623c51b2075a60e
migration: Wait for blocking IO

We have three conditions here:
- channel fails -> error
- we have to quit: we close the channel and reads fails
- normal read that success, we are in bussiness

So forget the complications of waiting in a semaphore.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c