block: use drained section in bdrv_close
commitfc27291dafbb5ae39dfc43f22cae867d442ac5ab
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 23 Dec 2015 10:48:24 +0000 (23 11:48 +0100)
committerMax Reitz <mreitz@redhat.com>
Thu, 7 Jan 2016 20:30:17 +0000 (7 21:30 +0100)
tree0c441f02a0dc10c8394e1655cb07823421a3ff62
parent7467d94cc43d3bea91160dba6ad42c07da217219
block: use drained section in bdrv_close

bdrv_close is used when ejecting a medium.  Use a drained section to ensure
that all I/O goes to either the old medium or the bitbucket.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1450867706-19860-2-git-send-email-pbonzini@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block.c