forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/fs/eventpoll.c
....@@ -1825,7 +1825,11 @@
18251825 {
18261826 int ret = default_wake_function(wq_entry, mode, sync, key);
18271827
1828
- list_del_init(&wq_entry->entry);
1828
+ /*
1829
+ * Pairs with list_empty_careful in ep_poll, and ensures future loop
1830
+ * iterations see the cause of this wakeup.
1831
+ */
1832
+ list_del_init_careful(&wq_entry->entry);
18291833 return ret;
18301834 }
18311835