io_uring: refactor io_queue_sqe()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 15 Apr 2022 21:08:28 +0000 (22:08 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:23:58 +0000 (19:23 -0600)
commitceba3567006f5e932521b93d327d8626a0078be1
tree2920a792803b804e05ddadc35893f5e2356b0340
parent6c8d43e0f1375748e788d70cdecdf8ce9721e8fa
io_uring: refactor io_queue_sqe()

io_queue_sqe() is a part of the submission path and we try hard to keep
it inlined, so shed some extra bytes from it by moving the error
checking part into io_queue_sqe_arm_apoll() and renaming it accordingly.

note: io_queue_sqe_arm_apoll() is not inlined, thus the patch doesn't
change the number of function calls for the apoll path.

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