qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH RFC v2 01/22] block/pcache: empty pcache driver


From: Pavel Butsykin
Subject: Re: [Qemu-block] [PATCH RFC v2 01/22] block/pcache: empty pcache driver filter
Date: Tue, 6 Sep 2016 18:20:01 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 01.09.2016 17:31, Kevin Wolf wrote:
Am 29.08.2016 um 19:10 hat Pavel Butsykin geschrieben:
The basic version of pcache driver for easy preparation of a patch set.

Signed-off-by: Pavel Butsykin <address@hidden>

+    .bdrv_aio_readv                     = pcache_aio_readv,
+    .bdrv_aio_writev                    = pcache_aio_writev,

Can you please use .bdrv_co_preadv/pwritev instead and make everything
based on bytes rather than sectors?

Internally you can still spawn AIO requests to achieve the same
parallelism as you have now (we'll just need new byte-based
bdrv_co_aio_prw_vector() wrappers, but the functionality is there) and I
don't think making the outer layer coroutine based would be too hard. In
fact it might even simplify some code.

Of course, I just wrote pcache when new byte-based interfaces have not
yet been implemented.

Kevin




reply via email to

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