io_uring: keep io_req_free_batch() call locality
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 19 Mar 2021 17:22:32 +0000 (17:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:42:50 +0000 (07:42 -0600)
commit31895283d5795b9f2c2e87263f799e7b5d711236
tree05bfb85798d75e2d426b49b2445f9a5f9747a7df
parent2c6353e42a8703504c9afe3f7143fbece4f1dce5
io_uring: keep io_req_free_batch() call locality

Don't do a function call (io_dismantle_req()) in the middle and place it
to near other function calls, otherwise may lead to excessive register
spilling.

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