commit | 5087275dba02943179720bd95d1d6c7047007550 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Wed Feb 10 00:03:12 2021 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Feb 10 07:28:43 2021 -0700 |
tree | cf6b621d5c8eb5af58994e96edc89b1a8016b52a | |
parent | ba88ff112bdfde8103a8143f867bcdc46bc0e50f [diff] |
io_uring: don't reinit submit state every time As now submit_state is retained across syscalls, we can save ourself from initialising it from ground up for each io_submit_sqes(). Set some fields during ctx allocation, and just keep them always consistent. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> [axboe: remove unnecessary zeroing of ctx members] Signed-off-by: Jens Axboe <axboe@kernel.dk>