diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 60f6b2712f5e9c539ed5d2a2972dbb2b7425b34e..53c3d4677dd4081a561611b7500948f5ed855454 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -1162,14 +1162,7 @@ static int ep_poll_callback(wait_queue_entry_t *wait, unsigned mode, int sync, v if (epi->next == EP_UNACTIVE_PTR) { epi->next = READ_ONCE(ep->ovflist); WRITE_ONCE(ep->ovflist, epi); - if (epi->ws) { - /* - * Activate ep->ws since epi->ws may get - * deactivated at any time. - */ - __pm_stay_awake(ep->ws); - } - + ep_pm_stay_awake_rcu(epi); } goto out_unlock; }