commit | 5ea5dd45844d1b727ab2a76f47d6e9aa65d1e921 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Feb 04 13:52:03 2021 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Feb 04 08:05:46 2021 -0700 |
tree | e0c98b883f1850c61a85d6b3ae9e93639d8db74a | |
parent | 7335e3bf9d0a92be09bb4f38d06ab22c40f0fead [diff] |
io_uring: inline io_read()'s iovec freeing io_read() has not the simpliest control flow with a lot of jumps and it's hard to read. One of those is a out_free: label, which frees iovec. However, from the middle of io_read() iovec is NULL'ed and so kfree(iovec) is no-op, it leaves us with two place where we can inline it and further clean up the code. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>