Re: sys_poll with timeout -1 bug fix

From: Nishanth Aravamudan
Date: Thu Jun 15 2006 - 11:04:38 EST


On 15.06.2006 [15:05:00 +0200], frode isaksen wrote:
> If you do a poll() call with timeout -1, the wait will be a big
> number (depending on HZ) instead of infinite wait, since -1 is
> passed to the msecs_to_jiffies function.
> Tested on i386 and MIPS with latest (2.6.16) kernel.

This looks very close to a fix I have on my machine, as well, after
looking at sys_poll() a bit. I suppose the only times you would notice
are if an application actually wants as long a wait as possible, as
opposed to a very long one.

Your patch was line-wrapped and does not have a Signed-off-by line,
however. Care to try again?

Thanks,
Nish

--
Nishanth Aravamudan <nacc@xxxxxxxxxx>
IBM Linux Technology Center
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/