]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/eventpoll.c
bpf: Wrap aux data inside bpf_sanitize_info container
[mirror_ubuntu-hirsute-kernel.git] / fs / eventpoll.c
index a829af074eb58ec1ec0fe7c46533d3a0269bb851..e42477fcbfa05d9ae0324d5811f37449d1e51f3b 100644 (file)
@@ -657,6 +657,12 @@ static void ep_done_scan(struct eventpoll *ep,
         */
        list_splice(txlist, &ep->rdllist);
        __pm_relax(ep->ws);
+
+       if (!list_empty(&ep->rdllist)) {
+               if (waitqueue_active(&ep->wq))
+                       wake_up(&ep->wq);
+       }
+
        write_unlock_irq(&ep->lock);
 }
 
@@ -979,7 +985,7 @@ static struct epitem *ep_find(struct eventpoll *ep, struct file *file, int fd)
        return epir;
 }
 
-#ifdef CONFIG_CHECKPOINT_RESTORE
+#ifdef CONFIG_KCMP
 static struct epitem *ep_find_tfd(struct eventpoll *ep, int tfd, unsigned long toff)
 {
        struct rb_node *rbp;
@@ -1021,7 +1027,7 @@ struct file *get_epoll_tfile_raw_ptr(struct file *file, int tfd,
 
        return file_raw;
 }
-#endif /* CONFIG_CHECKPOINT_RESTORE */
+#endif /* CONFIG_KCMP */
 
 /**
  * Adds a new entry to the tail of the list in a lockless way, i.e.