]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: deduplicate io_grab_files() calls
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 23 Jul 2020 17:25:21 +0000 (20:25 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jul 2020 19:00:46 +0000 (13:00 -0600)
commit22a14b6b44c73038f9b9ee5b99815ef300061386
tree8dae496b24ca65e22a0922d54b0f061f713904aa
parent2e3ff32f9a835d1fd74550ebaa0a6b12ef2aef61
io_uring: deduplicate io_grab_files() calls

Move io_req_init_async() into io_grab_files(), it's safer this way. Note
that io_queue_async_work() does *init_async(), so it's valid to move out
of __io_queue_sqe() punt path. Also, add a helper around io_grab_files().

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