From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5YsK-0006Xw-Kk for qemu-devel@nongnu.org; Fri, 11 Jul 2014 07:20:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5YsE-0008DA-I6 for qemu-devel@nongnu.org; Fri, 11 Jul 2014 07:20:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5YsE-0008Cx-B2 for qemu-devel@nongnu.org; Fri, 11 Jul 2014 07:20:18 -0400 From: Stefan Hajnoczi Date: Fri, 11 Jul 2014 13:20:10 +0200 Message-Id: <1405077612-7806-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH for-2.1? 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 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 | 44 +++++++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 13 deletions(-) -- 1.9.3