summaryrefslogtreecommitdiff
path: root/io_uring/epoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'io_uring/epoll.c')
-rw-r--r--io_uring/epoll.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/io_uring/epoll.c b/io_uring/epoll.c
index eecd748cad01..b9db8bde27ec 100644
--- a/io_uring/epoll.c
+++ b/io_uring/epoll.c
@@ -62,9 +62,6 @@ int io_epoll_ctl(struct io_kiocb *req, unsigned int issue_flags)
CLASS(fd, tf)(ie->fd);
if (fd_empty(tf))
return -EBADF;
- /* disallow adding an epoll context to another epoll context */
- if (ie->op == EPOLL_CTL_ADD && is_file_epoll(fd_file(tf)))
- return -EINVAL;
key.file = fd_file(tf);
key.fd = ie->fd;