]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: unite fill_cqe and the 32B version
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 15 Jun 2022 10:23:03 +0000 (11:23 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jun 2022 11:06:09 +0000 (05:06 -0600)
commitc83ca079aad5eb35fb068c1fbc07b4f3ebfe2310
treef78022cb0f70f79154cee0ba1438476c0434adf5
parent7dbcef003d91bc9b06d9843b22ecb7c6884bc666
io_uring: unite fill_cqe and the 32B version

We want just one function that will handle both normal cqes and 32B
cqes. Combine __io_fill_cqe_req() and __io_fill_cqe_req32(). It's still
not entirely correct yet, but saves us from cases when we fill an CQE of
a wrong size.

Fixes: cae2e6244e788 ("io_uring: enable CQE32")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/8085c5b2f74141520f60decd45334f87e389b718.1655287457.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c