diff options
author | Tony Battersby <tonyb@cybernetics.com> | 2009-04-01 00:24:13 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 17:59:19 +0200 |
commit | abff55cee1039b5a3b96f7a5eb6e65b9f247a274 (patch) | |
tree | dfbcc71256c2129d2e0ee3e077461103338b9591 /.gitignore | |
parent | epoll: remove debugging code (diff) | |
download | linux-abff55cee1039b5a3b96f7a5eb6e65b9f247a274.tar.xz linux-abff55cee1039b5a3b96f7a5eb6e65b9f247a274.zip |
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 <tonyb@cybernetics.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>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions