[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] 答复: [PATCH] block: all I/O should be completed before remo
From: |
lizhengui |
Subject: |
[Qemu-block] 答复: [PATCH] block: all I/O should be completed before removing throttle timers. |
Date: |
Tue, 24 Oct 2017 03:27:05 +0000 |
Ok,thanks for your reply.
-----邮件原件-----
发件人: Stefan Hajnoczi [mailto:address@hidden
发送时间: 2017年10月24日 1:41
收件人: lizhengui
抄送: address@hidden; address@hidden; address@hidden; address@hidden; Lulina (A);
address@hidden; Subo (A); Fangyi (C); address@hidden; wangjie (P);
jiangxiaoqing (C)
主题: Re: [Qemu-block] [PATCH] block: all I/O should be completed before removing
throttle timers.
On Sat, Oct 21, 2017 at 01:34:00PM +0800, Zhengui Li wrote:
> From: Zhengui <address@hidden>
>
> 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.
>
> Signed-off-by: Zhengui <address@hidden>
> ---
> block/block-backend.c | 4 ++++
> 1 file changed, 4 insertions(+)
Related (but not equivalent) patch here:
https://patchwork.kernel.org/patch/9970023/
Reviewed-by: Stefan Hajnoczi <address@hidden>