[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 01/12] block: Add op blocker type "device IO"

From: Fam Zheng
Subject: Re: [Qemu-devel] [PATCH v3 01/12] block: Add op blocker type "device IO"
Date: Fri, 15 May 2015 15:06:37 +0800
User-agent: Mutt/1.5.23 (2014-03-12)

On Fri, 05/15 14:22, Wen Congyang wrote:
> On 05/15/2015 02:04 PM, Fam Zheng wrote:
> > It blocks device IO.
> I am reading mirror codes recently, and have a question:
> When block job mirror is finished, the source and target is synced. But we
> call bdrv_swap() later(in bh context). Can the guest write something to
> the source before the bh is scheduled? If the answer is yes, I think
> we should use this to block the guest's disk I/O.

I think you're right. After mirror_run returns, anything can happen on this aio
context, including guest writing.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]