projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68685fa
)
io_uring: disable ENTER_EXT_ARG_REG for IOPOLL
author
Pavel Begunkov
<asml.silence@gmail.com>
Fri, 15 Nov 2024 16:54:39 +0000
(16:54 +0000)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 15 Nov 2024 16:58:34 +0000
(09:58 -0700)
IOPOLL doesn't use the extended arguments, no need for it to support
IORING_ENTER_EXT_ARG_REG. Let's disable it for IOPOLL, if anything it
leaves more space for future extensions.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/a35ecd919dbdc17bd5b7932273e317832c531b45.1731689588.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/io_uring/io_uring.c
b/io_uring/io_uring.c
index bd71782057de2cdf9966a9c533d7e0fe9e90eaf9..464a70bde7e67c83471c2b343300bec8891ec8d2 100644
(file)
--- a/
io_uring/io_uring.c
+++ b/
io_uring/io_uring.c
@@
-3214,12
+3214,8
@@
static int io_validate_ext_arg(struct io_ring_ctx *ctx, unsigned flags,
if (!(flags & IORING_ENTER_EXT_ARG))
return 0;
-
- if (flags & IORING_ENTER_EXT_ARG_REG) {
- if (argsz != sizeof(struct io_uring_reg_wait))
- return -EINVAL;
- return PTR_ERR(io_get_ext_arg_reg(ctx, argp));
- }
+ if (flags & IORING_ENTER_EXT_ARG_REG)
+ return -EINVAL;
if (argsz != sizeof(arg))
return -EINVAL;
if (copy_from_user(&arg, argp, sizeof(arg)))