Skip to content

AioContext removal: LinuxAioState and ThreadPool

Emanuele Giuseppe Esposito qemu-devel 5 versions – Applied

Status from this message: Thanks, applied to the block-next branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 9 repliesApplied
  2. v43 patches 3 repliesSuperseded
  3. v33 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches3 repliesSuperseded
v12 patches12 repliesSuperseded

Changes in v5 from the cover letter

* apply Stefan comments, add patch 4 to remove ThreadPool * param from thread_pool_submit*
* document that functions run in current IOThread

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/4linux-aio: use LinuxAioState from the running threadblock/file-posix.c block/linux-aio.c include/block/aio.h +2 more+38 -297 replies
2/4io_uring: use LuringState from the running threadblock/file-posix.c block/io_uring.c include/block/aio.h +1 more+30 -240 replies
3/4thread-pool: use ThreadPool from the running threadblock/file-posix.c block/file-win32.c block/qcow2-threads.c +2 more+21 -180 replies
4/4thread-pool: avoid passing the pool parameter every timebackends/tpm/tpm_backend.c block/file-posix.c block/file-win32.c +9 more+27 -440 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchStefan Hajnoczi
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/4] AioContext removal: LinuxAioState and ThreadPool

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.

---
v5:
* apply Stefan comments, add patch 4 to remove ThreadPool * param from thread_pool_submit*
* document that functions run in current IOThread

v4:
* add missing aio_context removal, and fix typo

v3:
* remove qemu_coroutine_enter_if_inactive

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

Emanuele Giuseppe Esposito (4):
linux-aio: use LinuxAioState from the running thread
io_uring: use LuringState from the running thread
thread-pool: use ThreadPool from the running thread
thread-pool: avoid passing the pool parameter every time

 include/block/aio.h               |  8 ------
 include/block/raw-aio.h           | 33 ++++++++++++++++-------
 include/block/thread-pool.h       | 15 ++++++-----
 include/sysemu/block-backend-io.h |  6 +++++
 backends/tpm/tpm_backend.c        |  4 +--
 block/file-posix.c                | 45 ++++++++++++-------------------
 block/file-win32.c                |  4 +--
 block/io_uring.c                  | 23 ++++++++++------
 block/linux-aio.c                 | 29 +++++++++++---------
 block/qcow2-threads.c             |  3 +--
 hw/9pfs/coth.c                    |  3 +--
 hw/ppc/spapr_nvdimm.c             |  6 ++---
 hw/virtio/virtio-pmem.c           |  3 +--
 scsi/pr-manager.c                 |  3 +--
 scsi/qemu-pr-helper.c             |  3 +--
 tests/unit/test-thread-pool.c     | 12 ++++-----
 util/thread-pool.c                | 25 +++++++++--------
 17 files changed, 113 insertions(+), 112 deletions(-)
Signature · 1 line
2.39.1