History

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.

Pavel Begunkov committed 1 year ago

Commit 2f71d231 parent d1aa0342 files · +12 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/io_uring/mock_file.h+5−0
@@ -6,6 +6,7 @@ · 5 unmodified lines
66 enum {
77 IORING_MOCK_FEAT_CMD_COPY,
88 IORING_MOCK_FEAT_RW_ZERO,
9+ IORING_MOCK_FEAT_RW_NOWAIT,
910
1011 IORING_MOCK_FEAT_END,
1112 };
@@ -15,6 +16,10 @@ struct io_uring_mock_probe { · 3 unmodified lines
1516 __u64 __resv[9];
1617 };
1718
19+enum {
20+ IORING_MOCK_CREATE_F_SUPPORT_NOWAIT = 1,
21+};
22+
1823 struct io_uring_mock_create {
1924 __u32 out_fd;
2025 __u32 flags;