hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/kernel/sched/psi.c
....@@ -1225,10 +1225,11 @@
12251225
12261226 group = t->group;
12271227 /*
1228
- * Wakeup waiters to stop polling. Can happen if cgroup is deleted
1229
- * from under a polling process.
1228
+ * Wakeup waiters to stop polling and clear the queue to prevent it from
1229
+ * being accessed later. Can happen if cgroup is deleted from under a
1230
+ * polling process.
12301231 */
1231
- wake_up_interruptible(&t->event_wait);
1232
+ wake_up_pollfree(&t->event_wait);
12321233
12331234 mutex_lock(&group->trigger_lock);
12341235