Re: [PATCH v9 3/5] virtio_balloon: introduce migration primitives toballoon pages

From: Rafael Aquini
Date: Tue Aug 28 2012 - 14:06:10 EST


On Tue, Aug 28, 2012 at 08:57:16PM +0300, Michael S. Tsirkin wrote:
> Sorry I do not understand what you are saying here. So find
> a different locking strategy.
>
> For example something like:
>
> wait_event(vb->config_change,
> ({
> lock
> if (target <= (num_pages - isolated_pages))
> leak balloon
> cond = target <= (num_pages - isolated_pages));
> unlock;
> cond;
> })
> )
>
> seems to have no issues?

Ok, I see what you mean. I'll change it.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/