qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] [RESEND] block: unify block and fdmon io_uring
@ 2025-04-01 14:27 Stefan Hajnoczi
  2025-04-01 14:27 ` [PATCH 1/3] aio-posix: treat io_uring setup failure as fatal Stefan Hajnoczi
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Stefan Hajnoczi @ 2025-04-01 14:27 UTC (permalink / raw)
  To: qemu-devel
  Cc: Aarushi Mehta, Stefan Hajnoczi, Stefano Garzarella,
	surajshirvankar, Hanna Reitz, qemu-block, Kevin Wolf,
	Paolo Bonzini, Fam Zheng

For some reason the patch series didn't reach the mailing list. Resending.

Every AioContext has an io_uring context for file descriptor monitoring. In
addition, block/io_uring.c also has an io_uring context for disk I/O. This
patch series eliminates the extra io_uring context so that AioContext has a
single io_uring context.

Patch 2 introduces the aio_add_sqe() API for submitting custom io_uring SQEs.
Patch 3 then replaces its io_uring context with the aio_add_sqe() API so that
disk I/O requests share the AioContext's io_uring context.

I will post performance results when they become available.

Based-on: 20250326183340.1010531-1-stefanha@redhat.com

Stefan Hajnoczi (3):
  aio-posix: treat io_uring setup failure as fatal
  aio-posix: add aio_add_sqe() API for user-defined io_uring requests
  block/io_uring: use aio_add_sqe()

 include/block/aio.h     |  74 +++++-
 include/block/raw-aio.h |   5 -
 util/aio-posix.h        |   1 +
 block/file-posix.c      |  25 +-
 block/io_uring.c        | 489 ++++++++++------------------------------
 stubs/io_uring.c        |  32 ---
 util/aio-posix.c        |   9 +
 util/async.c            |  35 ---
 util/fdmon-io_uring.c   | 155 +++++++++----
 block/trace-events      |  12 +-
 stubs/meson.build       |   3 -
 util/trace-events       |   4 +
 12 files changed, 316 insertions(+), 528 deletions(-)
 delete mode 100644 stubs/io_uring.c

-- 
2.49.0



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

end of thread, other threads:[~2025-04-28 18:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-01 14:27 [PATCH 0/3] [RESEND] block: unify block and fdmon io_uring Stefan Hajnoczi
2025-04-01 14:27 ` [PATCH 1/3] aio-posix: treat io_uring setup failure as fatal Stefan Hajnoczi
2025-04-25 15:51   ` Kevin Wolf
2025-04-28 18:35     ` Stefan Hajnoczi
2025-04-01 14:27 ` [PATCH 2/3] aio-posix: add aio_add_sqe() API for user-defined io_uring requests Stefan Hajnoczi
2025-04-01 14:27 ` [PATCH 3/3] block/io_uring: use aio_add_sqe() Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).