diff options
| author | Zhengui <lizhengui@huawei.com> | 2017-10-21 13:34:00 +0800 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-11-13 14:02:05 +0000 |
| commit | 632a77354317df32c7ff2d23424f0559c23fee51 (patch) | |
| tree | e7e4ffa39703050dce5a67b90e5c8d83ef421c4e /qapi/string-input-visitor.c | |
| parent | 508ba0f7e2092d3ca56e3f75e894d52d8b94818e (diff) | |
| download | focaccia-qemu-632a77354317df32c7ff2d23424f0559c23fee51.tar.gz focaccia-qemu-632a77354317df32c7ff2d23424f0559c23fee51.zip | |
block: all I/O should be completed before removing throttle timers.
In blk_remove_bs, all I/O should be completed before removing throttle timers. If there has inflight I/O, removing throttle timers here will cause the inflight I/O never return. This patch add bdrv_drained_begin before throttle_timers_detach_aio_context to let all I/O completed before removing throttle timers. [Moved declaration of bs as suggested by Alberto Garcia <berto@igalia.com>. --Stefan] Signed-off-by: Zhengui <lizhengui@huawei.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Message-id: 1508564040-120700-1-git-send-email-lizhengui@huawei.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qapi/string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions