]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/napi: clean up __io_napi_do_busy_loop
authorOlivier Langlois <olivier@trillion01.com>
Sun, 13 Oct 2024 18:29:12 +0000 (14:29 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Nov 2024 20:55:38 +0000 (13:55 -0700)
commit71afd926f292bb8f3ca86e6c3c40123037f109c6
treea48c5105f99cc4f79b5c7ef2bb0f24e3fe306c2f
parentdb1e1adf6f993b1c2cef605d86eff709a8db5052
io_uring/napi: clean up __io_napi_do_busy_loop

__io_napi_do_busy_loop now requires to have loop_end in its parameters.
This makes the code cleaner and also has the benefit of removing a
branch since the only caller not passing NULL for loop_end_arg is also
setting the value conditionally.

Signed-off-by: Olivier Langlois <olivier@trillion01.com>
Link: https://lore.kernel.org/r/d5b9bb91b1a08fff50525e1c18d7b4709b9ca100.1728828877.git.olivier@trillion01.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/napi.c