]> git.karo-electronics.de Git - karo-tx-linux.git/commit
epoll: fix suspicious RCU usage in ep_poll_callback
authorEric Wong <normalperson@yhbt.net>
Tue, 26 Mar 2013 23:25:08 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:30 +0000 (17:12 +1100)
commitd49110af342c841e9b8116e0af717c8d3b58c71b
tree10b94ed1ca96440b4e116c9e66925e5090047886
parentfba82035fa5f7bfeda03c68d6490496cf93faba5
epoll: fix suspicious RCU usage in ep_poll_callback

The commit "epoll: use RCU to protect wakeup_source in epitem"
introduced the ep_pm_stay_awake_rcu function for ep_poll_callback
use, but I left it unused on accident.  ep->mtx cannot be held in
ep_poll_callback, so RCU should be used here.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/eventpoll.c