]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
io_uring: remove redundant check
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Nov 2019 20:32:49 +0000 (23:32 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:06 +0000 (19:56 -0700)
Pass any IORING_OP_LINK_TIMEOUT request further, where it will
eventually fail in io_issue_sqe().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c

index c1226f609e183aae3522da01b7406ffc0d9db73e..fd60939a8a595f8860cd6cbd453250ce1bd4cef5 100644 (file)
@@ -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);
        }