Skip to content
Commit b10841c9 authored by Noah Goldstein's avatar Noah Goldstein Committed by Jens Axboe
Browse files

fs/io_uring: Prioritise checking faster conditions first in io_write



This commit reorders the conditions in a branch in io_write. The
reorder to check 'ret2 == -EAGAIN' first as checking
'(req->ctx->flags & IORING_SETUP_IOPOLL)' will likely be more
expensive due to 2x memory derefences.

Signed-off-by: default avatarNoah Goldstein <goldstein.w.n@gmail.com>
Link: https://lore.kernel.org/r/20211017013229.4124279-1-goldstein.w.n@gmail.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 5cb03d63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment