]> www.infradead.org Git - users/willy/xarray.git/commit
io_uring: optimise initial ltimeout refcounting
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 15 Aug 2021 09:40:20 +0000 (10:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:10:37 +0000 (13:10 -0600)
commitfb6820998f57a3e63a382a322530fa28522a2bba
tree8da5b64c08630d41d4b1943db4b6304e35e29569
parent761bcac1573efc99042d59add94d468bf17127f0
io_uring: optimise initial ltimeout refcounting

Linked timeouts are never refcounted when it comes to the first call to
__io_prep_linked_timeout(), so save an io_ref_get() and set the desired
value directly.

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