diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2025-03-19 06:12:48 +0000 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-03-19 09:25:55 -0600 |
| commit | 5f14404bfa245a156915ee44c827edc56655b067 (patch) | |
| tree | fee2fd21984b3f69fb43d0f2c9f090838faeecc6 /io_uring/opdef.c | |
| parent | 575e7b0629d4bd485517c40ff20676180476f5f9 (diff) | |
| download | linux-next-5f14404bfa245a156915ee44c827edc56655b067.tar.gz linux-next-5f14404bfa245a156915ee44c827edc56655b067.zip | |
io_uring/cmd: don't expose entire cmd async data
io_uring needs private bits in cmd's ->async_data, and they should never
be exposed to drivers as it'd certainly be abused. Leave struct
io_uring_cmd_data for the drivers but wrap it into a structure. It's a
prep patch and doesn't do anything useful yet.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20250319061251.21452-3-sidong.yang@furiosa.ai
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.c')
| -rw-r--r-- | io_uring/opdef.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/opdef.c b/io_uring/opdef.c index 7fd173197b1e..e4aa61a414fb 100644 --- a/io_uring/opdef.c +++ b/io_uring/opdef.c @@ -416,7 +416,7 @@ const struct io_issue_def io_issue_defs[] = { .plug = 1, .iopoll = 1, .iopoll_queue = 1, - .async_size = sizeof(struct io_uring_cmd_data), + .async_size = sizeof(struct io_async_cmd), .prep = io_uring_cmd_prep, .issue = io_uring_cmd, }, |
