Re: Re: [PATCH 4/13] memcg: force_empty moving account

Peter Zijlstra
2008-09-22T14:56:03Z

On Mon, 2008-09-22 at 23:50 +0900, kamezawa.hiroyu@jp.fujitsu.com wrote:
> ----- Original Message -----
> >> + spin_lock_irqsave(&mz->lru_lock, flags);
> >> + } else {
> >> + unlock_page(page);
> >> + put_page(page);
> >> + }
> >> + if (atomic_read(&mem->css.cgroup->count) > 0)
> >> + break;
> >> }
> >> spin_unlock_irqrestore(&mz->lru_lock, flags);
> >
> >do _NOT_ use yield() ever! unless you know what you're doing, and
> >probably not even then.
> >
> >NAK!
> Hmm, sorry. cond_resched() is ok ?

depends on what you want to do, please explain what you're trying to do.