]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: minor io_cqring_wait() optimization
authorOlivier Langlois <olivier@trillion01.com>
Tue, 8 Mar 2022 22:17:21 +0000 (17:17 -0500)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Mar 2022 16:18:30 +0000 (09:18 -0700)
commit21eab7f549e8978968dc9ed3a70b297d42e1f949
tree780fbac4afd60c4c2986fcd3aed8718fe24333dc
parentf90db67b7d2a72f783a8639a6313051b21ad0f6c
io_uring: minor io_cqring_wait() optimization

Move up the block manipulating the sig variable to execute code
that may encounter an error and exit first before continuing
executing the rest of the function and avoid useless computations

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