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>
Thu, 25 Mar 2021 16:24:21 +0000 (10:24 -0600)
commitcd543d41df5b484ee2274cfe917933643ee9a240
tree7644c435194ad88bf5a30ad55b51d9ed114d00e1
parent7f3a8dcca33e23e7d22c4bb827c0b83efef5fc6e
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