epoll: epoll_wait() should not use timespec_add_ns()
commit168adf93380bada1eefaca8dee29556faf3a0986
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 1 Feb 2011 23:52:35 +0000 (1 15:52 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:39 +0000 (17 15:14 -0800)
treea1fe4d301415f718fe9fe91d60cf81d54b4c70aa
parentcea229ad1aebf290feea057734a90b4a9b329ea8
epoll: epoll_wait() should not use timespec_add_ns()

commit 0781b909b5586f4db720b5d1838b78f9d8e42f14 upstream.

commit 95aac7b1cd224f ("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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/eventpoll.c