migration: introduce lock for to_dst_file
commit62df066ffffdbd41b42ca91130611e40fbc53f0b
authorPeter Xu <peterx@redhat.com>
Wed, 2 May 2018 10:47:38 +0000 (2 18:47 +0800)
committerJuan Quintela <quintela@redhat.com>
Tue, 15 May 2018 20:12:41 +0000 (15 22:12 +0200)
treeb834f0b0dc36054f7a883be9a3a8e10ea66dec32
parent3b563c4be01f42d2a4e641d50736bd5ac8e3b15f
migration: introduce lock for to_dst_file

Let's introduce a lock for that QEMUFile since we are going to operate
on it in multiple threads.

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