[5304] Relax posix-aio restrictions on newer glibcs
Revision: 5304
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5304 Author: aliguori Date: 2008-09-23 02:57:00 +0000 (Tue, 23 Sep 2008)
Log Message:
-----------
Relax posix-aio restrictions on newer glibcs
RedHat 9 shipped glibc 2.3. Modern versions of glibc do not have the aio thread exit issue that the comment references. This patch adjusts the check to only limit aio_init on glibc versions < 2.4.
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/block-raw-posix.c
Modified: trunk/block-raw-posix.c
===================================================================
block-raw-posix.c +1 -1
@@ -545,7 +545,7 @@qemu_aio_set_fd_handler (s->fd, posix_aio_read,NULL , posix_aio_flush, s); -#if defined(__GLIBC__) && defined(__linux__) +#if defined(__linux__) && defined(__GLIBC_PREREQ) && !__GLIBC_PREREQ (2 ,4 ) {/* XXX: aio thread exit seems to hang on RedHat 9 and this init seems to fix the problem. */