io_uring/napi: refactor __io_napi_busy_loop()
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 7 Aug 2024 14:18:11 +0000 (15:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 Aug 2024 20:40:21 +0000 (14:40 -0600)
commitcba7995f0f219fa5570b9087678f0094d85a3a0f
treec5ccdac8dbb67870bf297cb9a66ab5f512b22401
parent062c0e4075b838f6fc53b5ad0660ed7bec7bd464
io_uring/napi: refactor __io_napi_busy_loop()

we don't need to set ->napi_prefer_busy_poll if we're not going to poll,
do the checks first and all polling preparation after.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/2ad7ede8cc7905328fc62e8c3805fdb11635ae0b.1723039801.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/napi.c