mbox series

[0/8] legacy provided buffer deprecation / deoptimisation

Message ID cover.1738724373.git.asml.silence@gmail.com (mailing list archive)
Headers show
Series legacy provided buffer deprecation / deoptimisation | expand

Message

Pavel Begunkov Feb. 5, 2025, 11:36 a.m. UTC
Legacy provided buffers are slow and discouraged, users are encouraged
to use ring provided buffers instead. Clean up the legacy code, remove
caching and optimisations. The goal here it to make it simpler and less
of a burden to maintain.

Pavel Begunkov (8):
  io_uring/kbuf: remove legacy kbuf bulk allocation
  io_uring/kbuf: remove legacy kbuf kmem cache
  io_uring/kbuf: move locking into io_kbuf_drop()
  io_uring/kbuf: simplify __io_put_kbuf
  io_uring/kbuf: remove legacy kbuf caching
  io_uring/kbuf: open code __io_put_kbuf()
  io_uring/kbuf: introduce io_kbuf_drop_legacy()
  io_uring/kbuf: uninline __io_put_kbufs

 include/linux/io_uring_types.h |   3 -
 io_uring/io_uring.c            |  11 +--
 io_uring/io_uring.h            |   1 -
 io_uring/kbuf.c                | 172 +++++++++++++++------------------
 io_uring/kbuf.h                | 100 +++----------------
 5 files changed, 89 insertions(+), 198 deletions(-)

Comments

Jens Axboe Feb. 5, 2025, 4:17 p.m. UTC | #1
On Wed, 05 Feb 2025 11:36:41 +0000, Pavel Begunkov wrote:
> Legacy provided buffers are slow and discouraged, users are encouraged
> to use ring provided buffers instead. Clean up the legacy code, remove
> caching and optimisations. The goal here it to make it simpler and less
> of a burden to maintain.
> 
> Pavel Begunkov (8):
>   io_uring/kbuf: remove legacy kbuf bulk allocation
>   io_uring/kbuf: remove legacy kbuf kmem cache
>   io_uring/kbuf: move locking into io_kbuf_drop()
>   io_uring/kbuf: simplify __io_put_kbuf
>   io_uring/kbuf: remove legacy kbuf caching
>   io_uring/kbuf: open code __io_put_kbuf()
>   io_uring/kbuf: introduce io_kbuf_drop_legacy()
>   io_uring/kbuf: uninline __io_put_kbufs
> 
> [...]

Applied, thanks!

[1/8] io_uring/kbuf: remove legacy kbuf bulk allocation
      commit: 95865452e8b06974bb297891acbb7e5a6afc8d4c
[2/8] io_uring/kbuf: remove legacy kbuf kmem cache
      commit: 6ad0e0db0d81c3e5ddf3b7ce84cb937590f724a3
[3/8] io_uring/kbuf: move locking into io_kbuf_drop()
      commit: 615da6b1d03b53efea22faaab3f1a3d21888ed72
[4/8] io_uring/kbuf: simplify __io_put_kbuf
      commit: a6fe909acef9535dc56327b1a872466f080be413
[5/8] io_uring/kbuf: remove legacy kbuf caching
      commit: 30205b4708dcd3f2823377ae55afb953a05a2672
[6/8] io_uring/kbuf: open code __io_put_kbuf()
      commit: ac6757c5a032c800f927cef1245b81a3b4fabbce
[7/8] io_uring/kbuf: introduce io_kbuf_drop_legacy()
      commit: 3d692b5b37fc755eb35881c0f612ed6f00ac7b11
[8/8] io_uring/kbuf: uninline __io_put_kbufs
      commit: 641492f1733609b7abebf74ea9ebba6c29b84e79

Best regards,