Re: [Qemu-block] [PATCH 02/19] block: Use bdrv_do_drain_begin/end in bdrv_drain_all()

2018-04-20 Thread Stefan Hajnoczi
On Wed, Apr 11, 2018 at 06:39:23PM +0200, Kevin Wolf wrote: > bdrv_do_drain_begin/end() implement already everything that > bdrv_drain_all_begin/end() need and currently still do manually: Disable > external events, call parent drain callbacks, call block driver > callbacks. > > It also does two

[Qemu-block] [PATCH 02/19] block: Use bdrv_do_drain_begin/end in bdrv_drain_all()

2018-04-11 Thread Kevin Wolf
bdrv_do_drain_begin/end() implement already everything that bdrv_drain_all_begin/end() need and currently still do manually: Disable external events, call parent drain callbacks, call block driver callbacks. It also does two more things: The first is incrementing bs->quiesce_counter.