lkml.org 
[lkml]   [2012]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v9 3/5] virtio_balloon: introduce migration primitives to balloon pages
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.



\
 
 \ /
  Last update: 2012-08-28 20:41    [W:0.052 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site