Re: [PATCH v1] fs/io_uring: Prioritise checking faster conditions first in io_write
From: Jens Axboe
Date: Sun Oct 17 2021 - 10:23:56 EST
On Sat, 16 Oct 2021 20:32:29 -0500, Noah Goldstein wrote:
> 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.
>
>
Applied, thanks!
[1/1] fs/io_uring: Prioritise checking faster conditions first in io_write
commit: 02a8286be94bb1fce86afa6b487717eb4ca2956e
Best regards,
--
Jens Axboe