Skip to content

Clean up alloc_cache allocations

Gabriel Krisman Bertazi io-uring 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/29 patches 1 replyApplied
  2. v2 posting 1/29 patches 0 repliesSuperseded
  3. v19 patches 5 repliesSuperseded

Patches in v2 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/9io_uring: Fold allocation into alloc_cache helperio_uring/alloc_cache.h+13 -00 replies
2/9io_uring: Add generic helper to allocate async dataio_uring/io_uring.h+10 -00 replies
3/9io_uring/futex: Allocate ifd with generic alloc_cache helperio_uring/futex.c+1 -120 replies
4/9io_uring/poll: Allocate apoll with generic alloc_cache helperio_uring/poll.c+5 -80 replies
5/9io_uring/uring_cmd: Allocate async data through generic helperio_uring/io_uring.h io_uring/uring_cmd.c+3 -180 replies
6/9io_uring/net: Allocate msghdr async data through helperio_uring/net.c+18 -170 replies
7/9io_uring/rw: Allocate async data through helperio_uring/rw.c+16 -200 replies
8/9io_uring: Move old async data allocation helper to headerio_uring/io_uring.c io_uring/io_uring.h io_uring/timeout.c +1 more+16 -180 replies
9/9io_uring/msg_ring: Drop custom destructorio_uring/io_uring.c io_uring/msg_ring.c io_uring/msg_ring.h+2 -100 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH RESEND v2 0/9] Clean up alloc_cache allocations

Hi, Jens, Pavel.

I sent this v2 originally during US thanksgiving week, so I'm resending now under a more suitable time, rebased and retested on top of Jen's for-6.14/io_uring branch. It keeps the changes requested in v1:
renaming the allocation helper and introducing a callback instead of zeroing the entire object, as suggested by Jens.

This was tested against liburing testsuite, with lockdep and KASAN enabled.

For v1, please see:
https://lore.kernel.org/io-uring/[email protected]/T/#t

Thanks,

Gabriel Krisman Bertazi (9):
io_uring: Fold allocation into alloc_cache helper
io_uring: Add generic helper to allocate async data io_uring/futex: Allocate ifd with generic alloc_cache helper io_uring/poll: Allocate apoll with generic alloc_cache helper io_uring/uring_cmd: Allocate async data through generic helper io_uring/net: Allocate msghdr async data through helper io_uring/rw: Allocate async data through helper
io_uring: Move old async data allocation helper to header io_uring/msg_ring: Drop custom destructor

 io_uring/alloc_cache.h | 13 +++++++++++++
 io_uring/futex.c       | 13 +------------
 io_uring/io_uring.c    | 17 ++---------------
 io_uring/io_uring.h    | 23 +++++++++++++++++++++++
 io_uring/msg_ring.c    |  7 -------
 io_uring/msg_ring.h    |  1 -
 io_uring/net.c         | 35 ++++++++++++++++++-----------------
 io_uring/poll.c        | 13 +++++--------
 io_uring/rw.c          | 36 ++++++++++++++++--------------------
 io_uring/timeout.c     |  5 ++---
 io_uring/uring_cmd.c   | 20 ++------------------
 io_uring/waitid.c      |  4 ++--
 12 files changed, 84 insertions(+), 103 deletions(-)
Signature · 1 line
2.47.0