diff options
author | MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> | 2010-05-28 11:44:57 +0900 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-06-04 11:43:40 +0200 |
commit | 2bc93fed76c89f7adaa0e5bb357dcdc6c2b097a8 (patch) | |
tree | 5982353ed7064ff6459e897ff3305b644f5580c5 /vl.c | |
parent | 08a00559f00975cebcb3f844fe7c708d65b6a3b3 (diff) |
close all the block drivers before the qemu process exits
This patch calls the close handler of the block driver before the qemu
process exits.
This is necessary because the sheepdog block driver releases the lock
of VM images in the close handler.
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1991,6 +1991,7 @@ static void main_loop(void) vm_stop(r); } } + bdrv_close_all(); pause_all_vcpus(); } |