]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit053b65cda5283441a77db7fc0f5e5d11093b33d4
tree8227d424b97c7bf1bd78fc4a35beafec3443511e
parent6f5e2a845e31cc5a8d267d611c3ce5dc90f23d96
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