io_uring: memcpy CQE from req
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 12 Apr 2022 14:09:44 +0000 (15:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Apr 2022 00:02:46 +0000 (18:02 -0600)
commit90e7c35fb89154439a4a604699faf36adbfa871b
treeaac2f1e5611d5f1b41aaa1c25cee6d92cc7c1964
parentcef216fc32d7628206c523994e7e267e7a8dda59
io_uring: memcpy CQE from req

We can do CQE filling a bit more efficiently when req->cqe is fully
filled by memcpy()'ing it to the userspace instead of doing it field by
field. It's easier on register spilling, removes a couple of extra
loads/stores and write combines two u32 memory writes.

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