From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X73yK-0008Cl-BB for qemu-devel@nongnu.org; Tue, 15 Jul 2014 10:44:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X73yC-0000Lb-Ry for qemu-devel@nongnu.org; Tue, 15 Jul 2014 10:44:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X73yC-0000LF-Kd for qemu-devel@nongnu.org; Tue, 15 Jul 2014 10:44:40 -0400 From: Stefan Hajnoczi Date: Tue, 15 Jul 2014 16:44:24 +0200 Message-Id: <1405435466-20801-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] thread-pool: avoid fd usage and fix nested aio_poll() deadlock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Christian Borntraeger v2: * Leave BH scheduled so that the code can be simplified [Paolo] These patches convert thread-pool.c from EventNotifier to QEMUBH. They then solve the deadlock when nested aio_poll() calls are made. Please speak out whether you want this in QEMU 2.1 or not. I'm not aware of the nested aio_poll() deadlock ever having been reported, so maybe we can defer to QEMU 2.2. Stefan Hajnoczi (2): thread-pool: avoid per-thread-pool EventNotifier thread-pool: avoid deadlock in nested aio_poll() calls thread-pool.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) -- 1.9.3