migrate.c: migrate_fd_put_buffer: Do not busyloop: stop writing if EWOULDBLOCK
commit95b134ea02a3e2c2508f907db4ab1379ffdb0bef
authorUri Lublin <uril@redhat.com>
Tue, 19 May 2009 11:08:53 +0000 (19 14:08 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 May 2009 14:12:57 +0000 (20 09:12 -0500)
treea45e38e31af24878b2a34caaa57454f8f8822fb2
parent76ae317f7c16aec6b469604b1764094870a75470
migrate.c: migrate_fd_put_buffer: Do not busyloop: stop writing if EWOULDBLOCK

The migration code is non-blocking, designed for live migration.

Practically migrate_fd_put_buffer busy-loops trying to write, as
on many machines EWOULDBLOCK==EAGAIN (look in include/asm-generic/errno.h).

Signed-off-by: Uri Lublin <uril@redhat.com>
migration.c