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 /io_uring/io_uring.c | |
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 'io_uring/io_uring.c')
-rw-r--r-- | io_uring/io_uring.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 2dff4772bf14..cb6bd9907045 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -4669,6 +4669,9 @@ static int __init io_uring_init(void) BUILD_BUG_ON(sizeof(atomic_t) != sizeof(u32)); + /* top 8bits are for internal use */ + BUILD_BUG_ON((IORING_URING_CMD_MASK & 0xff000000) != 0); + io_uring_optable_init(); /* |