From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Hiq-0003zJ-NU for qemu-devel@nongnu.org; Wed, 02 Jul 2014 06:25:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2Hij-0007mW-9S for qemu-devel@nongnu.org; Wed, 02 Jul 2014 06:25:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2Hij-0007mP-0m for qemu-devel@nongnu.org; Wed, 02 Jul 2014 06:24:57 -0400 Message-ID: <53B3DDEE.3000109@redhat.com> Date: Wed, 02 Jul 2014 12:24:46 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20140701152130.GK4587@noname.str.redhat.com> <53B2E82D.8020000@redhat.com> <53B3C059.3060601@redhat.com> <53B3C932.7000700@redhat.com> <20140702091241.GE5996@noname.str.redhat.com> <20140702094958.GG5996@noname.str.redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/3] block: block: introduce bdrv_io_plug() and bdrv_io_unplug() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ming Lei , Kevin Wolf Cc: Peter Maydell , Fam Zheng , qemu-devel , Stefan Hajnoczi , "Michael S. Tsirkin" 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. Paolo