[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s
From: |
Jamie Lokier |
Subject: |
Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s |
Date: |
Tue, 4 Nov 2008 11:32:04 +0000 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
andrzej zaborowski wrote:
> > My man page even warns that the Linux
> > kernel is not implementing it yet, though I don't think this still
> > applies to recent 2.6.2x kernels.
>
> According to the man page it moved to kernel at 2.6.16 but the glibc
> wrapper should be ok too.
If there's a glibc wrapper, it cannot be reliable...
*Looks at glibc source*
That's right. The glibc pselect() wrapper has the same race condition
which prompted this QEMU bug. If the signal arrives after unmasking
and before select() in the wrapper, then blocks.
In other words, don't use pselect() if you might run on a kernel older
than 2.6.16, or on a host architecture which adds pselect() in a later
kernel version. Also, I wouldn't be surprised if older versions of
some BSDs have similar dodgy wrappers.
-- Jamie
- [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Jan Kiszka, 2008/11/02
- [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Anthony Liguori, 2008/11/03
- [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Jan Kiszka, 2008/11/03
- [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Jan Kiszka, 2008/11/03
- [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Anthony Liguori, 2008/11/03
- [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Jan Kiszka, 2008/11/03
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, andrzej zaborowski, 2008/11/04
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Jan Kiszka, 2008/11/04
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, andrzej zaborowski, 2008/11/04
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s,
Jamie Lokier <=
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, M. Warner Losh, 2008/11/04
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Jan Kiszka, 2008/11/04
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, M. Warner Losh, 2008/11/04
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Jan Kiszka, 2008/11/04
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Jamie Lokier, 2008/11/05
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, M. Warner Losh, 2008/11/05
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Jan Kiszka, 2008/11/05
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Daniel P. Berrange, 2008/11/05
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, andrzej zaborowski, 2008/11/05
- Re: [Qemu-devel] Re: [5578] Increase default IO timeout from 10ms to 5s, Daniel P. Berrange, 2008/11/05