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)
commit692d836351ffa05016521a769543af51c9dc3e9e
tree54e09ce50f27dec2bf7f82115b58865c328f75b3
parent062d04d73168d1d7109b75600a53a6a361d1fda8
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