diff --git a/kernel/sched/psi.c b/kernel/sched/psi.c index 7f40d87e8f509b..48fedeee15c5b7 100644 --- a/kernel/sched/psi.c +++ b/kernel/sched/psi.c @@ -1278,10 +1278,11 @@ void psi_trigger_destroy(struct psi_trigger *t) group = t->group; /* - * Wakeup waiters to stop polling. Can happen if cgroup is deleted - * from under a polling process. + * Wakeup waiters to stop polling and clear the queue to prevent it from + * being accessed later. Can happen if cgroup is deleted from under a + * polling process. */ - wake_up_interruptible(&t->event_wait); + wake_up_pollfree(&t->event_wait); mutex_lock(&group->trigger_lock);