io_uring: deprecate epoll_ctl support
[linux-block.git] / io_uring / epoll.c
index acbb32498127adae9a7775650929b26f5b608f7b..10853e8ed0788751d1031dc7d7ecdb45d8018cdf 100644 (file)
@@ -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;