aboutsummaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorJens Axboe2022-06-01 12:36:42 -0600
committerJens Axboe2022-07-24 18:39:12 -0600
commit61a2732af4b0337f7e36093612c846e9f5962965 (patch)
tree5f6ba1a9fb36fe65ad3ba35c746aaf1e17929505 /io_uring
parentb9ba8a4463cd78d0aee520c4bf2569820ac29929 (diff)
io_uring: deprecate epoll_ctl support
As far as we know, nobody ever adopted the epoll_ctl management via io_uring. Deprecate it now with a warning, and plan on removing it in a later kernel version. When we do remove it, we can revert the following commits as well: 39220e8d4a2a ("eventpoll: support non-blocking do_epoll_ctl() calls") 58e41a44c488 ("eventpoll: abstract out epoll_ctl() handler") Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/io-uring/CAHk-=wiTyisXBgKnVHAGYCNvkmjk=50agS2Uk6nr+n3ssLZg2w@mail.gmail.com/ Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/epoll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io_uring/epoll.c b/io_uring/epoll.c
index acbb32498127..10853e8ed078 100644
--- a/io_uring/epoll.c
+++ b/io_uring/epoll.c
@@ -26,6 +26,10 @@ int io_epoll_ctl_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
{
struct io_epoll *epoll = io_kiocb_to_cmd(req);
+ pr_warn_once("%s: epoll_ctl support in io_uring is deprecated and will "
+ "be removed in a future Linux kernel version.\n",
+ current->comm);
+
if (sqe->buf_index || sqe->splice_fd_in)
return -EINVAL;