From: Pavel Begunkov Date: Tue, 19 Nov 2019 20:32:49 +0000 (+0300) Subject: io_uring: remove redundant check X-Git-Tag: Ubuntu-5.10.0-12.13~4056^2~30 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f70193d6d8cad4cc614223fef349e6ea9d48c61f;p=mirror_ubuntu-hirsute-kernel.git io_uring: remove redundant check Pass any IORING_OP_LINK_TIMEOUT request further, where it will eventually fail in io_issue_sqe(). Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index c1226f609e18..fd60939a8a59 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3079,10 +3079,6 @@ err_req: INIT_LIST_HEAD(&req->link_list); *link = req; - } else if (READ_ONCE(s->sqe->opcode) == IORING_OP_LINK_TIMEOUT) { - /* Only valid as a linked SQE */ - ret = -EINVAL; - goto err_req; } else { io_queue_sqe(req); }