]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't delay io_init_req() error check
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 10 Oct 2020 17:34:13 +0000 (18:34 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 10 Oct 2020 18:49:25 +0000 (12:49 -0600)
commit925cdbf683336a53789aa299a0940c567275cbe8
tree54e09ce50f27dec2bf7f82115b58865c328f75b3
parentf7cb2e6a2f92c0b2d6ce41931828be3c776d7457
io_uring: don't delay io_init_req() error check

Don't postpone io_init_req() error checks and do that right after
calling it. There is no control-flow statements or dependencies with
sqe/submitted accounting, so do those earlier, that makes the code flow
a bit more natural.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c