migration: normalize locking in migration/savevm.c
authorDenis V. Lunev <den@openvz.org>
Thu, 19 Nov 2015 06:42:11 +0000 (09:42 +0300)
committerJuan Quintela <quintela@redhat.com>
Thu, 19 Nov 2015 10:50:00 +0000 (11:50 +0100)
commit79b3c12ac5714e036a16d1a163a3517d74504f87
treebc4b26d5ab64d0b88b6ae84e103e0985e1d75ef7
parent7cb14481498e7acd969a76b53be0535cd90f7d53
migration: normalize locking in migration/savevm.c

basically all bdrv_* operations must be called under aio_context_acquire
except ones with bdrv_all prefix.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
CC: Juan Quintela <quintela@redhat.com>
CC: Kevin Wolf <kwolf@redhat.com>
Tested-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/savevm.c