]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: refactor file tables alloc/free
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:44:03 +0000 (15:44 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:35 +0000 (19:30 -0600)
commitce8f11b7a080092b38194cc11b0af6b97c28a96b
treecf48bd4060386b4d29f291dd3960b47a73504413
parentb2758975e7f0c4691c2fb9123f293cde08149a6c
io_uring: refactor file tables alloc/free

Introduce a heler io_free_file_tables() doing all the cleaning, there
are several places where it's hand coded. Also move all allocations into
io_sqe_alloc_file_tables() and rename it, so all of it is in one place.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/502a84ebf41ff119b095e59661e678eacb752bf8.1617287883.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c