public inbox for [email protected]
 help / color / mirror / Atom feed
From: Jens Axboe <[email protected]>
To: [email protected]
Subject: [PATCHSET 0/3] Move io_kiocb from task_struct to io_uring_task
Date: Sun,  3 Nov 2024 10:49:32 -0700	[thread overview]
Message-ID: <[email protected]> (raw)

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(-)

-- 
Jens Axboe


             reply	other threads:[~2024-11-03 17:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-03 17:49 Jens Axboe [this message]
2024-11-03 17:49 ` [PATCH 1/3] io_uring: move cancelations to be io_uring_task based Jens Axboe
2024-11-03 17:49 ` [PATCH 2/3] io_uring: remove task ref helpers Jens Axboe
2024-11-03 17:49 ` [PATCH 3/3] io_uring: move struct io_kiocb from task_struct to io_uring_task Jens Axboe
2024-11-03 21:47   ` Pavel Begunkov
2024-11-03 21:54     ` Jens Axboe
2024-11-03 22:05       ` Pavel Begunkov
2024-11-03 22:18         ` Jens Axboe
2024-11-03 22:36           ` Pavel Begunkov
2024-11-03 22:40             ` Jens Axboe
2024-11-03 22:47               ` Pavel Begunkov
2024-11-03 22:51                 ` Jens Axboe
2024-11-03 23:17                   ` Pavel Begunkov
2024-11-03 23:25                     ` Jens Axboe
2024-11-04 15:41   ` Pavel Begunkov
2024-11-04 16:16     ` Jens Axboe
2024-11-04 16:43       ` Pavel Begunkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox