qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 1/3] block: block: introduce bdrv_io_plug() a


From: Ming Lei
Subject: Re: [Qemu-devel] [PATCH v2 1/3] block: block: introduce bdrv_io_plug() and bdrv_io_unplug()
Date: Wed, 2 Jul 2014 18:28:03 +0800

On Wed, Jul 2, 2014 at 6:24 PM, Paolo Bonzini <address@hidden> wrote:
> Il 02/07/2014 12:02, Ming Lei ha scritto:
>
>>>> Actually linux-aio can support to submit read/write to multi files, and
>>>> virtio-scsi does have the use case, so in future io queue should be
>>>> per aio-context as I posted 1st time.  And I am wondering if
>>>> multiwrite-like
>>>> APIs can fit in this situation.
>>>
>>>
>>> Though where would you get the requests for two different files from,
>>> within the same bdrv_plug/unplug block?
>>
>>
>> I think it is doable if io queue is per aio_context.
>
>
> Yes, but that would basically mean moving linux-aio functionality to
> AioContext.  Effectively it's a rewrite of linux-aio.c.

IMO, we just need to move io_queue, plug and unplug out of linux-aio.c,
not a rewrite.

Thanks,
--
Ming Lei



reply via email to

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