From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtDfA-00070L-2K for qemu-devel@nongnu.org; Tue, 25 Nov 2014 05:48:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtDf0-0004NJ-En for qemu-devel@nongnu.org; Tue, 25 Nov 2014 05:48:04 -0500 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:46851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtDf0-0004NF-7N for qemu-devel@nongnu.org; Tue, 25 Nov 2014 05:47:54 -0500 Received: by mail-wi0-f176.google.com with SMTP id ex7so8688030wid.3 for ; Tue, 25 Nov 2014 02:47:53 -0800 (PST) Sender: Paolo Bonzini Message-ID: <54745E54.4030203@redhat.com> Date: Tue, 25 Nov 2014 11:47:48 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1415518978-2837-1-git-send-email-ming.lei@canonical.com> <546B5034.1050102@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 00/13] linux-aio/virtio-scsi: support AioContext wide IO submission as batch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ming Lei Cc: Kevin Wolf , Peter Maydell , Fam Zheng , qemu-devel , Stefan Hajnoczi On 22/11/2014 13:33, Ming Lei wrote: > > these patches are interesting. I would like to compare them with the > > opposite approach (and, I think, more similar to your old work) where > > the qemu_laio_state API is moved entirely into AioContext, with lazy > > allocation (reference-counted too, probably). > > Yes, it can be done in that way, but the feature is linux native aio > specific, so it might not be good to put it into AioContext. I think it's not a problem as long as the eventfd and io queue is created lazily. My main issue with these series is that aio_attach_aio_bs() (and detach) feels like a very ad hoc API. Adding io queue support directly in AioContext sounds better. > Basically most of the implementation should be same, and the > difference should be where the io queue is put. Yes, the change is not big. Paolo