public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH v2 0/6] compile out ctx->compat reads
@ 2025-02-24 12:42 Pavel Begunkov
  2025-02-24 12:42 ` [PATCH v2 1/6] io_uring: introduce io_is_compat() Pavel Begunkov
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Pavel Begunkov @ 2025-02-24 12:42 UTC (permalink / raw)
  To: io-uring; +Cc: asml.silence, Anuj gupta, Jens Axboe

Some code paths read ctx->compat even for !CONFIG_COMPAT, add and use
a helper to optimise that out. Namely cmd and rw.c vector imports
benefit from that, and others are converted for consistency.

rsrc.c is left out to avoid conflicts, it's easier to update it later.
It'd also be a good idea to further clean up compat code on top. 

v2: also use it for net, cmd and waitid
    remove some of the CONFIG_COMPAT guards from rw.c

Pavel Begunkov (6):
  io_uring: introduce io_is_compat()
  io_uring/cmd: optimise !CONFIG_COMPAT flags setting
  io_uring/rw: compile out compat param passing
  io_uring/rw: shrink io_iov_compat_buffer_select_prep
  io_uring/waitid: use io_is_compat()
  io_uring/net: use io_is_compat()

 io_uring/io_uring.h  |  5 +++++
 io_uring/net.c       | 19 ++++++++-----------
 io_uring/rw.c        | 22 ++++++----------------
 io_uring/uring_cmd.c |  2 +-
 io_uring/waitid.c    |  2 +-
 5 files changed, 21 insertions(+), 29 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-02-24 16:11 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-24 12:42 [PATCH v2 0/6] compile out ctx->compat reads Pavel Begunkov
2025-02-24 12:42 ` [PATCH v2 1/6] io_uring: introduce io_is_compat() Pavel Begunkov
2025-02-24 13:20   ` Anuj gupta
2025-02-24 12:42 ` [PATCH v2 2/6] io_uring/cmd: optimise !CONFIG_COMPAT flags setting Pavel Begunkov
2025-02-24 13:21   ` Anuj gupta
2025-02-24 12:42 ` [PATCH v2 3/6] io_uring/rw: compile out compat param passing Pavel Begunkov
2025-02-24 13:22   ` Anuj gupta
2025-02-24 12:42 ` [PATCH v2 4/6] io_uring/rw: shrink io_iov_compat_buffer_select_prep Pavel Begunkov
2025-02-24 12:42 ` [PATCH v2 5/6] io_uring/waitid: use io_is_compat() Pavel Begunkov
2025-02-24 13:23   ` Anuj gupta
2025-02-24 15:33   ` Caleb Sander Mateos
2025-02-24 16:12     ` Pavel Begunkov
2025-02-24 12:42 ` [PATCH v2 6/6] io_uring/net: " Pavel Begunkov
2025-02-24 13:23   ` Anuj gupta
2025-02-24 14:35 ` [PATCH v2 0/6] compile out ctx->compat reads Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox