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
6enum {6enum {
7 IORING_MOCK_FEAT_CMD_COPY,7 IORING_MOCK_FEAT_CMD_COPY,
8 IORING_MOCK_FEAT_RW_ZERO,8 IORING_MOCK_FEAT_RW_ZERO,
9 IORING_MOCK_FEAT_RW_NOWAIT,
9 10
10 IORING_MOCK_FEAT_END,11 IORING_MOCK_FEAT_END,
11};12};
@@ -15,6 +16,10 @@ struct io_uring_mock_probe { · 3 unmodified lines
15 __u64 __resv[9];16 __u64 __resv[9];
16};17};
17 18
19enum {
20 IORING_MOCK_CREATE_F_SUPPORT_NOWAIT = 1,
21};
22
18struct io_uring_mock_create {23struct io_uring_mock_create {
19 __u32 out_fd;24 __u32 out_fd;
20 __u32 flags;25 __u32 flags;