summaryrefslogtreecommitdiff
path: root/io_uring/alloc_cache.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2023-01-23 17:37:15 +0300
committerJens Axboe <axboe@kernel.dk>2023-01-30 01:17:41 +0300
commitb5083dfa36676e7b5d72bf3d70f429a0d08c5075 (patch)
tree8a6716fecd51f58639580c7d450f4dab592a74f7 /io_uring/alloc_cache.h
parentb2aa66aff60c841b2c93242752c25abf4c82a28c (diff)
downloadlinux-b5083dfa36676e7b5d72bf3d70f429a0d08c5075.tar.xz
io_uring: improve io_get_sqe
Return an SQE from io_get_sqe() as a parameter and use the return value to determine if it failed or not. This enables the compiler to compile out the sqe NULL check when we know that the return SQE is valid. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/9cceb11329240ea097dffef6bf0a675bca14cf42.1674484266.git.asml.silence@gmail.com [axboe: remove bogus const modifier on return value] Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/alloc_cache.h')
0 files changed, 0 insertions, 0 deletions