blockdev: no need to drain+flush in hmp_drive_del
commit126b8bbdfe8bc4042f13f230a4b36f90646f47c6
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 May 2015 14:17:09 +0000 (28 16:17 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 2 Jul 2015 08:20:18 +0000 (2 09:20 +0100)
treecb528be8dbafad9a26c423f36f6f3639081b14c0
parent4b80ab2b7d950d5b22647b364e37eb81c756f061
blockdev: no need to drain+flush in hmp_drive_del

bdrv_close already does that, and in fact hmp_drive_del would need
another drain after the flush (which bdrv_close does).  So remove
the duplication.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1432822629-25401-1-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
blockdev.c