From: Eric Dumazet Date: Tue, 1 Feb 2011 23:52:35 +0000 (-0800) Subject: epoll: epoll_wait() should not use timespec_add_ns() X-Git-Tag: v2.6.37.1~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=168adf93380bada1eefaca8dee29556faf3a0986;p=pandora-kernel.git 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 Signed-off-by: Eric Dumazet Cc: Shawn Bohrer Acked-by: Davide Libenzi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed