io_uring/mock: allow to choose FMODE_NOWAIT
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 30 Jun 2025 18:16:54 +0000 (19:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Jul 2025 14:10:26 +0000 (08:10 -0600)
commit2f71d2386f4feed5bfb9ee7b3d2c0ad953db1fa5
treed418e98b0bbc7781b5777dd08eee1a7531981e37
parentd1aa0346571436203a24cc3fc0c80f14cabbd630
io_uring/mock: allow to choose FMODE_NOWAIT

Add an option to choose whether the file supports FMODE_NOWAIT, that
changes the execution path io_uring request takes.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/1e532565b05a05b23589d237c24ee1a3d90c2fd9.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