io_uring: use member filling in io_fill_cqe_req()
authorJens Axboe <axboe@kernel.dk>
Sun, 3 Nov 2024 18:46:09 +0000 (11:46 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 3 Nov 2024 23:46:29 +0000 (16:46 -0700)
commit26233fab2c14446ec03c277228aaaa5d93ae0d1c
tree5933d51dd27e4a06d9ab65d1affda87c3f908b34
parent8534aca403eab70252629f8b0ceba0fd1d9dd5fc
io_uring: use member filling in io_fill_cqe_req()

At least on AMD architectures, manually filling the few fields we need
to copy ends up stalling a lot less than calling memcpy() to do the
same thing. Since it's just 3 fields here, do it manually.

Don't both with the big cqe, just do this for the normal CQE filling.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.h