Re: [Qemu-devel] [PATCH 1/2 v2] block: flush backing_hd in the right place

2010-01-13 Thread Kevin Wolf
Am 12.01.2010 19:13, schrieb Christoph Hellwig: The backing device is only modified from bdrv_commit. So instead of flushing it every time bdrv_flush is called for the front-end device only flush it after we're written data to it in bdrv_commit. Also flush the frontend image if we have a

[Qemu-devel] [PATCH 1/2 v2] block: flush backing_hd in the right place

2010-01-12 Thread Christoph Hellwig
The backing device is only modified from bdrv_commit. So instead of flushing it every time bdrv_flush is called for the front-end device only flush it after we're written data to it in bdrv_commit. Also flush the frontend image if we have a make_empty method that possibly writes to it.