From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1akv-0000gf-A0 for qemu-devel@nongnu.org; Mon, 30 Jun 2014 08:32:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1akn-0000UQ-Ml for qemu-devel@nongnu.org; Mon, 30 Jun 2014 08:32:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1akn-0000U6-ET for qemu-devel@nongnu.org; Mon, 30 Jun 2014 08:32:13 -0400 Message-ID: <53B158C7.10307@redhat.com> Date: Mon, 30 Jun 2014 14:32:07 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1404121756-14544-1-git-send-email-ming.lei@canonical.com> <53B14588.5040807@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/3] block: introduce submit I/O at batch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ming Lei Cc: Kevin Wolf , Peter Maydell , Fam Zheng , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Stefan Hajnoczi Il 30/06/2014 14:16, Ming Lei ha scritto: > I added the io queue into AioContext because the io queue can only > be used in the attached context(or thread), that said the io queue has to > be put into per context instance. It doesn't *have* to be per-thread. It is certainly simplest if you make it per-io_context_t, but this in the current code means making it per-BlockDriverState and putting it in block/linux-aio.c. > OK, I will not consider backing_hd case in v1, also the patchset will > not only improve dataplane, and other devices should benefit from > it too. > > These patches themselves should be simple, and most of code are > add-only, if bdrv_io_plug()/bdrv_io_unplug() isn't used, they are very close > to noop. > > I just wrote a draft patch to apply the mechanism on virtio-scsi, and > the improvement is obvious. I certainly agree. However, we have to also consider that we're close to releasing 2.1. Paolo