io_uring: simplify io_prep_linked_timeout
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 15 Aug 2021 09:40:24 +0000 (10:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:10:43 +0000 (13:10 -0600)
commit4d13d1a4d1e1807e04b846b48934e87016027f90
tree8227d424b97c7bf1bd78fc4a35beafec3443511e
parentb97e736a4b553ff18963019c7ca91cd684f83709
io_uring: simplify io_prep_linked_timeout

The link test in io_prep_linked_timeout() is pretty bulky, replace it
with a flag. It's better for normal path and linked requests, and also
will be used further for request failing.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/3703770bfae8bc1ff370e43ef5767940202cab42.1628981736.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c