mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
block: Introduce "drained begin/end" API
The semantics is that after bdrv_drained_begin(bs), bs will not get new external requests until the matching bdrv_drained_end(bs). Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
c1e1e5fa8f
commit
51288d7917
3 changed files with 38 additions and 0 deletions
|
@ -448,6 +448,8 @@ struct BlockDriverState {
|
|||
/* threshold limit for writes, in bytes. "High water mark". */
|
||||
uint64_t write_threshold_offset;
|
||||
NotifierWithReturn write_threshold_notifier;
|
||||
|
||||
int quiesce_counter;
|
||||
};
|
||||
|
||||
struct BlockBackendRootState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue