]> git.proxmox.com Git - mirror_qemu.git/commit
block: add blk_in_drain() API
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 16 May 2023 19:02:27 +0000 (15:02 -0400)
committerKevin Wolf <kwolf@redhat.com>
Tue, 30 May 2023 15:32:02 +0000 (17:32 +0200)
commitff82b7835b2fbbd0a17d616f6929601a97a6497d
treecb0b3a8ccbf2e144d69b013eed773a18896d1e70
parent9998f70f6625f15f2ae36f612509ea34733c11d3
block: add blk_in_drain() API

The BlockBackend quiesce_counter is greater than zero during drained
sections. Add an API to check whether the BlockBackend is in a drained
section.

The next patch will use this API.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230516190238.8401-10-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
include/sysemu/block-backend-global-state.h