]> git.baikalelectronics.ru Git - kernel.git/commit
epoll: epoll_wait() should not use timespec_add_ns()
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 1 Feb 2011 23:52:35 +0000 (15:52 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Feb 2011 00:03:18 +0000 (16:03 -0800)
commit334d0f48edc0cfd7388d26f46db59195ca0f13f7
tree767e53bf2cd3bebbc1a94f64632b53fdad31828d
parentf544675a9369367b923595d535fef2d64088a0f9
epoll: epoll_wait() should not use timespec_add_ns()

commit 4426906bfb99c6 ("epoll: make epoll_wait() use the hrtimer range
feature") added a performance regression because it uses timespec_add_ns()
with potential very large 'ns' values.

[akpm@linux-foundation.org: s/epoll_set_mstimeout/ep_set_mstimeout/, per Davide]
Reported-by: Simon Kirby <sim@hostway.ca>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Shawn Bohrer <shawn.bohrer@gmail.com>
Acked-by: Davide Libenzi <davidel@xmailserver.org>
Cc: <stable@kernel.org> [2.6.37.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/eventpoll.c