[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH v2 18/23] qcow2: Delay the COW
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [RFC PATCH v2 18/23] qcow2: Delay the COW |
Date: |
Fri, 15 Feb 2013 15:16:55 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Fri, Feb 15, 2013 at 02:36:37PM +0100, Stefan Hajnoczi wrote:
> On Wed, Feb 13, 2013 at 02:22:08PM +0100, Kevin Wolf wrote:
> > /**
> > + * true if the request is sleeping in the COW delay and the coroutine
> > may
> > + * be reentered in order to cancel the timer.
> > + */
> > + bool sleeping;
>
> Does reentering actually cancel the timer...or does it lead to a
> spurious entry when the timer fires in the future?
>
> Do we need anything to really delete the timer in case we re-enter and
> terminate the coroutine before the timer fires?
co_sleep_ns() supports this since commit 3ed99025, it cancels and deletes the
timer. Block jobs use the same thing when you cancel them.
Kevin
- [Qemu-devel] [RFC PATCH v2 10/23] qcow2: Factor out handle_copied(), (continued)
[Qemu-devel] [RFC PATCH v2 16/23] qcow2: Reading from areas not in L2 tables yet, Kevin Wolf, 2013/02/13
[Qemu-devel] [RFC PATCH v2 18/23] qcow2: Delay the COW, Kevin Wolf, 2013/02/13
[Qemu-devel] [RFC PATCH v2 19/23] qcow2: Add error handling to the l2meta coroutine, Kevin Wolf, 2013/02/13
[Qemu-devel] [RFC PATCH v2 14/23] qcow2: Use byte granularity in qcow2_alloc_cluster_offset(), Kevin Wolf, 2013/02/13
[Qemu-devel] [RFC PATCH v2 17/23] qcow2: Move COW and L2 update into own coroutine, Kevin Wolf, 2013/02/13
[Qemu-devel] [RFC PATCH v2 22/23] qcow2: Move cluster gathering to a non-looping loop, Kevin Wolf, 2013/02/13
[Qemu-devel] [RFC PATCH v2 21/23] qemu-iotests: Another concurrent multicluster allocation case, Kevin Wolf, 2013/02/13