From d49110af342c841e9b8116e0af717c8d3b58c71b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 27 Mar 2013 10:25:08 +1100 Subject: [PATCH] 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 Signed-off-by: Andrew Morton --- fs/eventpoll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 47ae9d96f0ac..63b0058f219b 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1049,7 +1049,7 @@ static int ep_poll_callback(wait_queue_t *wait, unsigned mode, int sync, void *k /* If this file is already in the ready list we exit soon */ if (!ep_is_linked(&epi->rdllink)) { list_add_tail(&epi->rdllink, &ep->rdllist); - ep_pm_stay_awake(epi); + ep_pm_stay_awake_rcu(epi); } /* -- 2.39.5