]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: clean up timeout async_data allocation
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 23 Oct 2021 11:14:00 +0000 (12:14 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Oct 2021 13:42:35 +0000 (07:42 -0600)
commit1dd6ac498888b8d11dddb2eeb26c870cacc820a6
treec9598ebf0b40c91361b94310dd01a0bea351d1dc
parent47cb7879037f9e40ab2948165ae4b09ea195c80a
io_uring: clean up timeout async_data allocation

opcode prep functions are one of the first things that are called, we
can't have ->async_data allocated at this point and it's certainly a
bug. Reflect this assumption in io_timeout_prep() and add a WARN_ONCE
just in case.

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