From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50686 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9Bdy-0003o5-5b for qemu-devel@nongnu.org; Fri, 22 Oct 2010 03:02:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9Bdw-0003KO-SX for qemu-devel@nongnu.org; Fri, 22 Oct 2010 03:02:25 -0400 Received: from e6.ny.us.ibm.com ([32.97.182.146]:34174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9Bdw-0003Jt-Q1 for qemu-devel@nongnu.org; Fri, 22 Oct 2010 03:02:24 -0400 Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [9.56.227.116]) by e6.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id o9M72uHi001116 for ; Fri, 22 Oct 2010 03:02:56 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9M72K2C1917136 for ; Fri, 22 Oct 2010 03:02:20 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9M72JId024795 for ; Fri, 22 Oct 2010 05:02:19 -0200 Date: Fri, 22 Oct 2010 12:32:16 +0530 From: Balbir Singh Subject: Re: [Qemu-devel] [PATCH 1/3] Introduce threadlets Message-ID: <20101022070216.GB15844@balbir.in.ibm.com> References: <20101021120911.25166.11204.stgit@localhost6.localdomain6> <20101021121045.25166.93600.stgit@localhost6.localdomain6> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20101021121045.25166.93600.stgit@localhost6.localdomain6> Reply-To: balbir@linux.vnet.ibm.com List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Arun R Bharadwaj Cc: qemu-devel@nongnu.org * Arun R B [2010-10-21 17:40:45]: > From: Aneesh Kumar K.V > > This patch creates a generic asynchronous-task-offloading infrastructure named > threadlets. The core idea has been borrowed from the threading framework that > is being used by paio. > > The reason for creating this generic infrastructure is so that other subsystems, > such as virtio-9p could make use of it for offloading tasks that could block. > > The patch creates a global queue on-to which subsystems can queue their tasks to > be executed asynchronously. > > The patch also provides API's that allow a subsystem to create a private queue > with an associated pool of threads. > > [ego@in.ibm.com: Facelift of the code, Documentation, cancel_threadlet > and other helpers] > > Signed-off-by: Aneesh Kumar K.V > Signed-off-by: Gautham R Shenoy > Signed-off-by: Sripathi Kodi > Signed-off-by: Arun R Bharadwaj Acked-by: Balbir Singh -- Three Cheers, Balbir