commit | f56040b81999871973d21f334b4657957422c90e | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Jul 23 20:25:21 2020 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Jul 24 13:00:46 2020 -0600 |
tree | 8dae496b24ca65e22a0922d54b0f061f713904aa | |
parent | ae34817bd93e373a03203a4c6892735c430a14e1 [diff] |
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>