]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix regression added by ppoll/pselect code.
authorDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2006 00:40:42 +0000 (16:40 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 20 Jan 2006 06:11:31 +0000 (22:11 -0800)
commit3b88b6c395e270845321066143342cbb71bb0d69
treef1f15646c7a9488cf0cd0838d04b8bde1193ef21
parent211b7f6acc150a44cf65342baa0e1724bfb16c6f
[PATCH] Fix regression added by ppoll/pselect code.

The compat layer timeout handling changes in:

9c4c9b6bef2cce15cf09243575d9a8efef2c9da4

are busted.  This is most easily seen with an X application
that uses sub-second select/poll timeout such as emacs.  You
hit a key and it takes a second or so before the app responds.

The two ROUND_UP() calls upon entry are using {tv,ts}_sec where it
should instead be using {tv_usec,ts_nsec}, which perfectly explains
the observed incorrect behavior.

Another bug shot down with git bisect.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/compat.c