From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48289 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLHng-0007cx-3V for qemu-devel@nongnu.org; Wed, 24 Nov 2010 11:02:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLHem-0004iP-I1 for qemu-devel@nongnu.org; Wed, 24 Nov 2010 10:55:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:4706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLHem-0004i5-Av for qemu-devel@nongnu.org; Wed, 24 Nov 2010 10:53:16 -0500 Date: Wed, 24 Nov 2010 17:53:02 +0200 From: "Michael S. Tsirkin" Message-ID: <5e41c7e3293678809cb901185bd9393d0976c614.1290613959.git.mst@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCHv2 3/6] migration/savevm: no need to flush requests List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: jasowang@redhat.com, Anthony Liguori , qemu-devel@nongnu.org, quintela@redhat.com There's no need to flush requests after vmstop as vmstop does it for us automatically now. Signed-off-by: Michael S. Tsirkin Tested-by: Jason Wang --- migration.c | 2 -- savevm.c | 4 ---- 2 files changed, 0 insertions(+), 6 deletions(-) diff --git a/migration.c b/migration.c index 9ee8b17..15f7f35 100644 --- a/migration.c +++ b/migration.c @@ -368,8 +368,6 @@ void migrate_fd_put_ready(void *opaque) DPRINTF("done iterating\n"); vm_stop(0); - qemu_aio_flush(); - bdrv_flush_all(); if ((qemu_savevm_state_complete(s->mon, s->file)) < 0) { if (old_vm_running) { vm_start(); diff --git a/savevm.c b/savevm.c index 4e49765..49e78a5 100644 --- a/savevm.c +++ b/savevm.c @@ -1575,8 +1575,6 @@ static int qemu_savevm_state(Monitor *mon, QEMUFile *f) saved_vm_running = vm_running; vm_stop(0); - bdrv_flush_all(); - ret = qemu_savevm_state_begin(mon, f, 0, 0); if (ret < 0) goto out; @@ -1885,8 +1883,6 @@ void do_savevm(Monitor *mon, const QDict *qdict) monitor_printf(mon, "No block device can accept snapshots\n"); return; } - /* ??? Should this occur after vm_stop? */ - qemu_aio_flush(); saved_vm_running = vm_running; vm_stop(0); -- 1.7.3.2.91.g446ac