io_uring: optimise req->ctx reloads
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 15 Oct 2021 16:09:11 +0000 (17:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:55 +0000 (05:49 -0600)
commit9983028e7660a2cc5e58403d8ce29569dbf3162d
treead0db0140b35d399ab0b4547d85d930ad12930f4
parent607b6fb8017a684f3f1567ccf776bdc0fe6d120e
io_uring: optimise req->ctx reloads

Don't load req->ctx in advance, it takes an extra register and the field
stays valid even after opcode handlers. It also optimises out req->ctx
load in io_iopoll_req_issued() once it's inlined.

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