io_uring/mock: support for async read/write
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 30 Jun 2025 18:16:55 +0000 (19:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Jul 2025 14:10:26 +0000 (08:10 -0600)
commit0c98a44329c10bf904434524425cb42043513bd6
tree1e659d8193905d316889fe6a2c74419e003bd220
parent2f71d2386f4feed5bfb9ee7b3d2c0ad953db1fa5
io_uring/mock: support for async read/write

Let the user to specify a delay to read/write request. io_uring will
start a timer, return -EIOCBQUEUED and complete the request
asynchronously after the delay pass.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/38f9d2e143fda8522c90a724b74630e68f9bbd16.1750599274.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring/mock_file.h
io_uring/mock_file.c