[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe |
Date: |
Mon, 24 Oct 2011 11:36:04 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 |
Am 24.10.2011 11:26, schrieb Paolo Bonzini:
> On 10/24/2011 10:54 AM, Kevin Wolf wrote:
>>> I don't know... checking BDRV_O_NO_FLUSH in the drivers rather than in
>>> the generic code sounds like a layering violation. Perhaps what you're
>>> after is a separation of bdrv_co_flush from bdrv_{,co_,aio_}fsync? Then
>>> BDRV_O_NO_FLUSH (better renamed to BDRV_O_NO_FSYNC...) would only
>>> inhibit the latter.
>>
>> Why? All other cache related BDRV_O_* flags are interpreted by the block
>> drivers, so why should BDRV_O_NO_FLUSH be special?
>
> You're changing the API and asking for possibly non-trivial changes in
> all protocol drivers, in order to accomodate semantics that all format
> drivers potentially could desire. So I wonder if the problem is simply
> that the current API is not expressive enough.
Can you think of any cases where a caller would want to invoke
bdrv_flush, but not bdrv_fsync? (The other way round it makes even less
sense)
Kevin
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, (continued)
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Paolo Bonzini, 2011/10/21
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Kevin Wolf, 2011/10/24
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Paolo Bonzini, 2011/10/24
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Kevin Wolf, 2011/10/24
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Paolo Bonzini, 2011/10/24
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Kevin Wolf, 2011/10/24
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Paolo Bonzini, 2011/10/24
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe,
Kevin Wolf <=
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Paolo Bonzini, 2011/10/24
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Kevin Wolf, 2011/10/24
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Paolo Bonzini, 2011/10/24
- Re: [Qemu-devel] [PATCH 0/2] block: Write out internal caches even with cache=unsafe, Peter Maydell, 2011/10/24