Skip to content

Move io_kiocb from task_struct to io_uring_task

Jens Axboe io-uring 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3io_uring: move cancelations to be io_uring_task basedio_uring/futex.c io_uring/futex.h io_uring/io_uring.c +9 more+40 -400 replies
2/3io_uring: remove task ref helpersio_uring/io_uring.c+10 -210 replies
3/3io_uring: move struct io_kiocb from task_struct to io_uring_taskinclude/linux/io_uring/cmd.h include/linux/io_uring_types.h io_uring/cancel.c +10 more+32 -3513 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHSET 0/3] Move io_kiocb from task_struct to io_uring_task

Hi,

To help avoid doing task_struct dereferences in the hot path, move struct io_kiocb from stashing a task_struct pointer to an io_uring_task pointer instead.

Patch 1 moves cancelations to key off io_uring_task rather than task, patch 2 just cleans up an unnecessary helper, and patch 3 moves to using io_uring_task in io_kiocb.

 include/linux/io_uring/cmd.h   |  2 +-
 include/linux/io_uring_types.h |  3 +-
 io_uring/cancel.c              |  2 +-
 io_uring/fdinfo.c              |  2 +-
 io_uring/futex.c               |  4 +-
 io_uring/futex.h               |  4 +-
 io_uring/io_uring.c            | 99 +++++++++++++++-------------------
 io_uring/io_uring.h            |  2 +-
 io_uring/msg_ring.c            |  4 +-
 io_uring/notif.c               |  4 +-
 io_uring/poll.c                |  7 ++-
 io_uring/poll.h                |  2 +-
 io_uring/rw.c                  |  2 +-
 io_uring/tctx.c                |  1 +
 io_uring/timeout.c             | 12 ++---
 io_uring/timeout.h             |  2 +-
 io_uring/uring_cmd.c           |  4 +-
 io_uring/uring_cmd.h           |  2 +-
 io_uring/waitid.c              |  6 +--
 io_uring/waitid.h              |  2 +-
 20 files changed, 76 insertions(+), 90 deletions(-)
Signature · 1 line
Jens Axboe