On Wed, Jul 2, 2014 at 6:24 PM, Paolo Bonzini <pbonz...@redhat.com> 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