[PULL 00/25] Block layer patches

Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230425131359.259007-1-kwolf@redhat.com
Maintainers: Stefan Berger <stefanb@linux.vnet.ibm.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Stefan Weil <sw@weilnetz.de>, Stefan Hajnoczi <stefanha@redhat.com>, Fam Zheng <fam@euphon.net>, Aarushi Mehta <mehta.aaru20@gmail.com>, Julia Suvorova <jusual@redhat.com>, Stefano Garzarella <sgarzare@redhat.com>, John Snow <jsnow@redhat.com>, Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>, Eric Blake <eblake@redhat.com>, Greg Kurz <groug@kaod.org>, Christian Schoenebeck <qemu_oss@crudebyte.com>, Daniel Henrique Barboza <danielhb413@gmail.com>, "Cédric Le Goater" <clg@kaod.org>, David Gibson <david@gibson.dropbear.id.au>, "Michael S. Tsirkin" <mst@redhat.com>, "Dr. David Alan Gilbert" <dave@treblig.org>, Markus Armbruster <armbru@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
There is a newer version of this series
block/qcow2.h                     | 15 +++++-----
hw/9pfs/9p.h                      |  4 +--
include/block/aio-wait.h          |  2 +-
include/block/aio.h               |  8 ------
include/block/block_int-common.h  |  2 +-
include/block/raw-aio.h           | 33 +++++++++++++++-------
include/block/thread-pool.h       | 15 ++++++----
include/sysemu/block-backend-io.h |  5 ++++
backends/tpm/tpm_backend.c        |  4 +--
block.c                           |  2 +-
block/blkdebug.c                  |  4 +--
block/block-backend.c             | 45 ++++++++++++++++++------------
block/export/export.c             |  2 +-
block/file-posix.c                | 45 ++++++++++++------------------
block/file-win32.c                |  4 +--
block/graph-lock.c                |  2 +-
block/io.c                        |  2 +-
block/io_uring.c                  | 23 ++++++++++------
block/linux-aio.c                 | 29 ++++++++++++--------
block/mirror.c                    |  4 +--
block/monitor/block-hmp-cmds.c    | 10 ++++---
block/qcow2-bitmap.c              |  2 +-
block/qcow2-cluster.c             | 21 ++++++++------
block/qcow2-refcount.c            |  8 +++---
block/qcow2-snapshot.c            | 25 +++++++++--------
block/qcow2-threads.c             |  3 +-
block/qcow2.c                     | 27 +++++++++---------
block/vmdk.c                      |  2 +-
block/vvfat.c                     | 58 ++++++++++++++++++++-------------------
hw/9pfs/codir.c                   |  6 ++--
hw/9pfs/coth.c                    |  3 +-
hw/ppc/spapr_nvdimm.c             |  6 ++--
hw/virtio/virtio-pmem.c           |  3 +-
monitor/hmp.c                     |  2 +-
monitor/monitor.c                 |  4 +--
nbd/server.c                      | 48 ++++++++++++++++----------------
scsi/pr-manager.c                 |  3 +-
scsi/qemu-pr-helper.c             | 25 ++++++++---------
tests/unit/test-thread-pool.c     | 14 ++++------
util/thread-pool.c                | 25 ++++++++---------
40 files changed, 283 insertions(+), 262 deletions(-)
[PULL 00/25] Block layer patches
Posted by Kevin Wolf 1 year ago
The following changes since commit ac5f7bf8e208cd7893dbb1a9520559e569a4677c:

  Merge tag 'migration-20230424-pull-request' of https://gitlab.com/juan.quintela/qemu into staging (2023-04-24 15:00:39 +0100)

are available in the Git repository at:

  https://repo.or.cz/qemu/kevin.git tags/for-upstream

for you to fetch changes up to 8c1e8fb2e7fc2cbeb57703e143965a4cd3ad301a:

  block/monitor: Fix crash when executing HMP commit (2023-04-25 15:11:57 +0200)

----------------------------------------------------------------
Block layer patches

- Protect BlockBackend.queued_requests with its own lock
- Switch to AIO_WAIT_WHILE_UNLOCKED() where possible
- AioContext removal: LinuxAioState/LuringState/ThreadPool
- Add more coroutine_fn annotations, use bdrv/blk_co_*
- Fix crash when execute hmp_commit

----------------------------------------------------------------
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

Paolo Bonzini (9):
      vvfat: mark various functions as coroutine_fn
      blkdebug: add missing coroutine_fn annotation
      mirror: make mirror_flush a coroutine_fn, do not use co_wrappers
      nbd: mark more coroutine_fns, do not use co_wrappers
      9pfs: mark more coroutine_fns
      qemu-pr-helper: mark more coroutine_fns
      tests: mark more coroutine_fns
      qcow2: mark various functions as coroutine_fn and GRAPH_RDLOCK
      vmdk: make vmdk_is_cid_valid a coroutine_fn

Stefan Hajnoczi (10):
      block: make BlockBackend->quiesce_counter atomic
      block: make BlockBackend->disable_request_queuing atomic
      block: protect BlockBackend->queued_requests with a lock
      block: don't acquire AioContext lock in bdrv_drain_all()
      block: convert blk_exp_close_all_type() to AIO_WAIT_WHILE_UNLOCKED()
      block: convert bdrv_graph_wrlock() to AIO_WAIT_WHILE_UNLOCKED()
      block: convert bdrv_drain_all_begin() to AIO_WAIT_WHILE_UNLOCKED()
      hmp: convert handle_hmp_command() to AIO_WAIT_WHILE_UNLOCKED()
      monitor: convert monitor_cleanup() to AIO_WAIT_WHILE_UNLOCKED()
      block: add missing coroutine_fn to bdrv_sum_allocated_file_size()

Wang Liang (1):
      block/monitor: Fix crash when executing HMP commit

Wilfred Mallawa (1):
      include/block: fixup typos

 block/qcow2.h                     | 15 +++++-----
 hw/9pfs/9p.h                      |  4 +--
 include/block/aio-wait.h          |  2 +-
 include/block/aio.h               |  8 ------
 include/block/block_int-common.h  |  2 +-
 include/block/raw-aio.h           | 33 +++++++++++++++-------
 include/block/thread-pool.h       | 15 ++++++----
 include/sysemu/block-backend-io.h |  5 ++++
 backends/tpm/tpm_backend.c        |  4 +--
 block.c                           |  2 +-
 block/blkdebug.c                  |  4 +--
 block/block-backend.c             | 45 ++++++++++++++++++------------
 block/export/export.c             |  2 +-
 block/file-posix.c                | 45 ++++++++++++------------------
 block/file-win32.c                |  4 +--
 block/graph-lock.c                |  2 +-
 block/io.c                        |  2 +-
 block/io_uring.c                  | 23 ++++++++++------
 block/linux-aio.c                 | 29 ++++++++++++--------
 block/mirror.c                    |  4 +--
 block/monitor/block-hmp-cmds.c    | 10 ++++---
 block/qcow2-bitmap.c              |  2 +-
 block/qcow2-cluster.c             | 21 ++++++++------
 block/qcow2-refcount.c            |  8 +++---
 block/qcow2-snapshot.c            | 25 +++++++++--------
 block/qcow2-threads.c             |  3 +-
 block/qcow2.c                     | 27 +++++++++---------
 block/vmdk.c                      |  2 +-
 block/vvfat.c                     | 58 ++++++++++++++++++++-------------------
 hw/9pfs/codir.c                   |  6 ++--
 hw/9pfs/coth.c                    |  3 +-
 hw/ppc/spapr_nvdimm.c             |  6 ++--
 hw/virtio/virtio-pmem.c           |  3 +-
 monitor/hmp.c                     |  2 +-
 monitor/monitor.c                 |  4 +--
 nbd/server.c                      | 48 ++++++++++++++++----------------
 scsi/pr-manager.c                 |  3 +-
 scsi/qemu-pr-helper.c             | 25 ++++++++---------
 tests/unit/test-thread-pool.c     | 14 ++++------
 util/thread-pool.c                | 25 ++++++++---------
 40 files changed, 283 insertions(+), 262 deletions(-)
Re: [PULL 00/25] Block layer patches
Posted by Richard Henderson 1 year ago
On 4/25/23 14:13, Kevin Wolf wrote:
> The following changes since commit ac5f7bf8e208cd7893dbb1a9520559e569a4677c:
> 
>    Merge tag 'migration-20230424-pull-request' ofhttps://gitlab.com/juan.quintela/qemu  into staging (2023-04-24 15:00:39 +0100)
> 
> are available in the Git repository at:
> 
>    https://repo.or.cz/qemu/kevin.git  tags/for-upstream
> 
> for you to fetch changes up to 8c1e8fb2e7fc2cbeb57703e143965a4cd3ad301a:
> 
>    block/monitor: Fix crash when executing HMP commit (2023-04-25 15:11:57 +0200)
> 
> ----------------------------------------------------------------
> Block layer patches
> 
> - Protect BlockBackend.queued_requests with its own lock
> - Switch to AIO_WAIT_WHILE_UNLOCKED() where possible
> - AioContext removal: LinuxAioState/LuringState/ThreadPool
> - Add more coroutine_fn annotations, use bdrv/blk_co_*
> - Fix crash when execute hmp_commit

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/8.1 as appropriate.


r~