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, 25 Apr 2022 00:02:49 +0000 (18:02 -0600)
commit7bfa9badc793ba5e8b530dc3a3cb092a1c22685b
treec8c08bd2a36cf4e71f4f26c71ebc5dc057a01478
parent77955efbc46220adce9ecb803fb9ff9042bd7236
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