commit | 351fd53595a3ceb88756a005e3b864f7c8cb86e4 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Mon Jun 29 19:18:40 2020 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Jun 30 08:39:59 2020 -0600 |
tree | 4b5f1bb03d48101532584406660fbde384705587 | |
parent | ecfc51777487da4da530710e0b13de4c8cb4a6d2 [diff] |
io_uring: don't pass def into io_req_work_grab_env Remove struct io_op_def *def parameter from io_req_work_grab_env(), it's trivially deducible from req->opcode and fast. The API is cleaner this way, and also helps the complier to understand that it's a real constant and could be register-cached. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>