Re: [Qemu-devel] RFC [PATCH] Make bdrv_flush synchronous only and update callers

2013-07-24 Thread Wenchao Xia
I am glad to have an accurate sync bdrv_flush(). Code looks fine. Reviewed-by: Wenchao Xia > This patch makes bdrv_flush a synchronous function and updates any callers > from > a coroutine context to use bdrv_co_flush instead. > > The motivation for this patch comes from the GSoC Continuatio

Re: [Qemu-devel] RFC [PATCH] Make bdrv_flush synchronous only and update callers

2013-07-23 Thread Gabriel Kerneis
On Tue, Jul 23, 2013 at 03:36:28PM +0200, Stefan Hajnoczi wrote: > On Tue, Jul 23, 2013 at 01:10:35PM +0100, Gabriel Kerneis wrote: > > On Tue, Jul 23, 2013 at 02:05:15PM +0200, Stefan Hajnoczi wrote: > > > A built-time check for coroutine_fn would be valuable if we ever hope to > > > get disciplin

Re: [Qemu-devel] RFC [PATCH] Make bdrv_flush synchronous only and update callers

2013-07-23 Thread Stefan Hajnoczi
On Tue, Jul 23, 2013 at 01:10:35PM +0100, Gabriel Kerneis wrote: > On Tue, Jul 23, 2013 at 02:05:15PM +0200, Stefan Hajnoczi wrote: > > A built-time check for coroutine_fn would be valuable if we ever hope to > > get disciplined with this annotation. > > > > The check can detect when a coroutine_f

Re: [Qemu-devel] RFC [PATCH] Make bdrv_flush synchronous only and update callers

2013-07-23 Thread Gabriel Kerneis
On Tue, Jul 23, 2013 at 02:05:15PM +0200, Stefan Hajnoczi wrote: > A built-time check for coroutine_fn would be valuable if we ever hope to > get disciplined with this annotation. > > The check can detect when a coroutine_fn is invoked outside coroutine > context. I wonder if Coccinelle can detec

Re: [Qemu-devel] RFC [PATCH] Make bdrv_flush synchronous only and update callers

2013-07-23 Thread Stefan Hajnoczi
On Fri, Jul 19, 2013 at 10:37:11AM +0200, Kevin Wolf wrote: > Am 19.07.2013 um 07:27 hat Stefan Hajnoczi geschrieben: > > On Thu, Jul 18, 2013 at 11:21:42PM +0200, Charlie Shepherd wrote: > > > This patch makes bdrv_flush a synchronous function and updates any > > > callers from > > > a coroutine

Re: [Qemu-devel] RFC [PATCH] Make bdrv_flush synchronous only and update callers

2013-07-19 Thread Kevin Wolf
Am 19.07.2013 um 07:27 hat Stefan Hajnoczi geschrieben: > On Thu, Jul 18, 2013 at 11:21:42PM +0200, Charlie Shepherd wrote: > > This patch makes bdrv_flush a synchronous function and updates any callers > > from > > a coroutine context to use bdrv_co_flush instead. > > > > The motivation for this

Re: [Qemu-devel] RFC [PATCH] Make bdrv_flush synchronous only and update callers

2013-07-18 Thread Stefan Hajnoczi
On Thu, Jul 18, 2013 at 11:21:42PM +0200, Charlie Shepherd wrote: > This patch makes bdrv_flush a synchronous function and updates any callers > from > a coroutine context to use bdrv_co_flush instead. > > The motivation for this patch comes from the GSoC Continuation-Passing C > project. When co

[Qemu-devel] RFC [PATCH] Make bdrv_flush synchronous only and update callers

2013-07-18 Thread Charlie Shepherd
This patch makes bdrv_flush a synchronous function and updates any callers from a coroutine context to use bdrv_co_flush instead. The motivation for this patch comes from the GSoC Continuation-Passing C project. When coroutines were introduced, synchronous functions in the block layer were convert