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>
Sun, 17 Apr 2022 22:55:33 +0000 (16:55 -0600)
commit554c34c36eb85385d1133362829be46e36ed4f92
tree1ded3a22b7920b21403bd7117a857ade8f97a7fb
parent5dedbb47888fe7cd7872af9d4ec7ed30f821c831
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