diff options
author | Ming Lei <ming.lei@redhat.com> | 2023-09-28 15:43:24 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-09-28 16:31:41 +0300 |
commit | 528ce6781726e022bc5dc84034360e6e8f1b89bd (patch) | |
tree | d5ce523f21f89ab280f2371bbc745cdf8ea8bc52 /include/linux | |
parent | f31ecf671ddc498f20219453395794ff2383e06b (diff) | |
download | linux-528ce6781726e022bc5dc84034360e6e8f1b89bd.tar.xz |
io_uring: retain top 8bits of uring_cmd flags for kernel internal use
Retain top 8bits of uring_cmd flags for kernel internal use, so that we
can move IORING_URING_CMD_POLLED out of uapi header.
Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/io_uring.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h index 106cdc55ff3b..ae08d6f66e62 100644 --- a/include/linux/io_uring.h +++ b/include/linux/io_uring.h @@ -22,6 +22,9 @@ enum io_uring_cmd_flags { IO_URING_F_IOPOLL = (1 << 10), }; +/* only top 8 bits of sqe->uring_cmd_flags for kernel internal use */ +#define IORING_URING_CMD_POLLED (1U << 31) + struct io_uring_cmd { struct file *file; const struct io_uring_sqe *sqe; |