From 523da077781efedb0e628ff8e6d2f54c96bdc8a7 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 2 Oct 2022 05:49:40 +0800 Subject: [PATCH] fs/epoll: Notify POLLIN directly(avoid set POLLFILE) Signed-off-by: Xiang Xiao --- fs/vfs/fs_epoll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/vfs/fs_epoll.c b/fs/vfs/fs_epoll.c index f68b227209..8339f16085 100644 --- a/fs/vfs/fs_epoll.c +++ b/fs/vfs/fs_epoll.c @@ -365,7 +365,7 @@ int epoll_ctl(int epfd, int op, int fd, struct epoll_event *ev) return -1; } - poll_notify(&eph->poll, 1, eph->poll[0].events); + poll_notify(&eph->poll, 1, POLLIN); return 0; }