All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET v2 0/2] Add support for cloning partial buffer sets
@ 2024-10-31  1:44 Jens Axboe
  2024-10-31  1:44 ` [PATCH 1/2] io_uring/rsrc: allow cloning at an offset Jens Axboe
  2024-10-31  1:44 ` [PATCH 2/2] io_uring/rsrc: allow cloning with node replacements Jens Axboe
  0 siblings, 2 replies; 4+ messages in thread
From: Jens Axboe @ 2024-10-31  1:44 UTC (permalink / raw)
  To: io-uring

Hi,

6.12 added buffer cloning support, but it's an all-or-nothing kind of
thing - if there's an existing buffer table in the destination ring,
then nothing can be cloned to it.

This adds support for cloning partial buffer sets, specifying a
source/dest offset and the number of buffers to clone. And it allows
cloning to replace existing nodes as well, specified with a separate
flag.

Changes since v1:
- Rebase on current tree (no rsrc_empty_node)
- Rewrite the replacement code to be much simpler
- Write more test cases

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCHSET 0/2] Add support for cloning partial buffer sets
@ 2024-10-30 16:54 Jens Axboe
  2024-10-30 16:54 ` [PATCH 1/2] io_uring/rsrc: allow cloning at an offset Jens Axboe
  0 siblings, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2024-10-30 16:54 UTC (permalink / raw)
  To: io-uring

Hi,

6.12 added buffer cloning support, but it's an all-or-nothing kind of
thing - if there's an existing buffer table in the destination ring,
then nothing can be cloned to it.

This adds support for cloning partial buffer sets, specifying a
source/dest offset and the number of buffers to clone. And it allows
cloning to replace existing nodes as well, specified with a separate
flag.

 include/uapi/linux/io_uring.h |  8 +++--
 io_uring/rsrc.c               | 60 +++++++++++++++++++++++++++++------
 2 files changed, 56 insertions(+), 12 deletions(-)

-- 
Jens Axboe


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

end of thread, other threads:[~2024-10-31  1:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31  1:44 [PATCHSET v2 0/2] Add support for cloning partial buffer sets Jens Axboe
2024-10-31  1:44 ` [PATCH 1/2] io_uring/rsrc: allow cloning at an offset Jens Axboe
2024-10-31  1:44 ` [PATCH 2/2] io_uring/rsrc: allow cloning with node replacements Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2024-10-30 16:54 [PATCHSET 0/2] Add support for cloning partial buffer sets Jens Axboe
2024-10-30 16:54 ` [PATCH 1/2] io_uring/rsrc: allow cloning at an offset Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.