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 <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
d3b35796b1
commit
f70193d6d8
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue