From: Tony Battersby Date: Tue, 31 Mar 2009 22:24:13 +0000 (-0700) Subject: epoll: don't use current in irq context X-Git-Tag: v2.6.30-rc1~527 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abff55cee1039b5a3b96f7a5eb6e65b9f247a274;p=pandora-kernel.git epoll: don't use current in irq context ep_call_nested() (formerly ep_poll_safewake()) uses "current" (without dereferencing it) to detect callback recursion, but it may be called from irq context where the use of current is generally discouraged. It would be better to use get_cpu() and put_cpu() to detect the callback recursion. Signed-off-by: Tony Battersby Acked-by: Davide Libenzi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed