mbox series

[v2,0/3] AioContext removal: LinuxAioState and ThreadPool

Message ID 20221028071635.3037348-1-eesposit@redhat.com (mailing list archive)
Headers show
Series AioContext removal: LinuxAioState and ThreadPool | expand

Message

Emanuele Giuseppe Esposito Oct. 28, 2022, 7:16 a.m. UTC
Just remove some AioContext lock in LinuxAioState and ThreadPool.
Not related to anything specific, so I decided to send it as
a separate patch.

These patches are taken from Paolo's old draft series.

---
v2:
* assertion in thread_pool
* remove useless BlockDriverState * param in patch 1 and 2
* io_uring cleaned too

Emanuele Giuseppe Esposito (2):
  io_uring: use LuringState from the running thread
  thread-pool: use ThreadPool from the running thread

Paolo Bonzini (1):
  linux-aio: use LinuxAioState from the running thread

 block/file-posix.c      | 43 ++++++++++++++++-------------------------
 block/file-win32.c      |  2 +-
 block/io_uring.c        | 26 ++++++++++++++-----------
 block/linux-aio.c       | 34 +++++++++++++++++---------------
 block/qcow2-threads.c   |  2 +-
 include/block/aio.h     |  8 --------
 include/block/raw-aio.h | 18 ++++++++---------
 util/thread-pool.c      |  5 ++++-
 8 files changed, 64 insertions(+), 74 deletions(-)