fs/epoll: Notify POLLIN directly(avoid set POLLFILE)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-02 05:49:40 +08:00 committed by Petro Karashchenko
parent e99c76a313
commit 523da07778

View File

@ -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;
}