qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/4] block: unify flush implementations


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 2/4] block: unify flush implementations
Date: Fri, 14 Oct 2011 16:04:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0

On 10/14/2011 04:02 PM, Kevin Wolf wrote:
>
>  It would still host the checks on BDRV_O_NO_FLUSH and bs->drv->*_flush.
>     It would be the same as bdrv_flush_co_entry is now, minus the
>  marshalling in/out of the RwCo.
Right.

By the way, I like how you handle all three backends in the same
function. I think this is a lot more readable than the solution used by
read/write (changing the function pointers on driver registration).


Yeah, and it makes sense to handle all of them in the bdrv_co_* version.

Will resubmit.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]