qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5289] Do not allow AIO to be inited multiple times
@ 2008-09-22 14:49 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-09-22 14:49 UTC (permalink / raw)
  To: qemu-devel

Revision: 5289
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5289
Author:   aliguori
Date:     2008-09-22 14:49:01 +0000 (Mon, 22 Sep 2008)

Log Message:
-----------
Do not allow AIO to be inited multiple times

This prevents two signalfd() threads from being spawned.  This problem was
originally spotted by Blue Swirl.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Modified Paths:
--------------
    trunk/block-raw-posix.c

Modified: trunk/block-raw-posix.c
===================================================================
--- trunk/block-raw-posix.c	2008-09-22 01:39:29 UTC (rev 5288)
+++ trunk/block-raw-posix.c	2008-09-22 14:49:01 UTC (rev 5289)
@@ -511,6 +511,9 @@
 {
     sigset_t mask;
 
+    if (aio_initialized)
+        return;
+
     aio_initialized = 1;
 
     /* Make sure to block AIO signal */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-22 14:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 14:49 [Qemu-devel] [5289] Do not allow AIO to be inited multiple times Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).