From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45335 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pfthj-00019t-3R for qemu-devel@nongnu.org; Thu, 20 Jan 2011 07:33:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pfthi-0002eR-3s for qemu-devel@nongnu.org; Thu, 20 Jan 2011 07:33:30 -0500 Received: from e28smtp05.in.ibm.com ([122.248.162.5]:53623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pfthh-0002dL-FT for qemu-devel@nongnu.org; Thu, 20 Jan 2011 07:33:30 -0500 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp05.in.ibm.com (8.14.4/8.13.1) with ESMTP id p0KCXFDd012943 for ; Thu, 20 Jan 2011 18:03:15 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p0KCXEBU2355336 for ; Thu, 20 Jan 2011 18:03:15 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p0KCXERh010461 for ; Thu, 20 Jan 2011 23:33:14 +1100 From: Arun R Bharadwaj Date: Thu, 20 Jan 2011 18:03:14 +0530 Message-ID: <20110120123236.17667.66688.stgit@localhost6.localdomain6> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 00/12] Threadlet Infrastructure List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, aliguori@linux.vnet.ibm.com, jvrao@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, stefanha@linux.vnet.ibm.com Hi, This patch series introduces threadlet framework in qemu. Changelog: * Modified the dequeue_work function logic which was earlier wrong. It now returns 0 on success and 1 on failure. * removed the locking for container_of which is not needed in handle_work() * changed qemu-threadlets.[c|h] to qemu-threadlet.[c|h] * introduced signal handler APIs in qemu-threadlet.c directly instead of in posix-aio-compat.c Testing: * I have tested this series using fsstress. Detailed testing information has been mentioned in the previous iteration. The following series implements... --- Arun R Bharadwaj (12): Add aiocb_mutex and aiocb_completion. Introduce work concept in posix-aio-compat.c Add callback function to ThreadletWork structure. Add ThreadletQueue. Threadlet: Add submit_work threadlet API. Threadlet: Add dequeue_work threadlet API and remove active field. Remove thread_create routine. Threadlet: Add aio_signal_handler threadlet API Remove all instances of CONFIG_THREAD Move threadlet code to qemu-threadlets.c Threadlets: Add functionality to create private queues. Threadlets: Add documentation Makefile.objs | 3 - configure | 2 docs/async-support.txt | 141 ++++++++++++++++++++++++++++ posix-aio-compat.c | 238 ++++++++++++------------------------------------ qemu-threadlet.c | 187 ++++++++++++++++++++++++++++++++++++++ qemu-threadlet.h | 48 ++++++++++ vl.c | 3 + 7 files changed, 440 insertions(+), 182 deletions(-) create mode 100644 docs/async-support.txt create mode 100644 qemu-threadlet.c create mode 100644 qemu-threadlet.h -- arun