[Devel] Re: [RFC][ only for review ] memory controller bacground reclaim [2/5] set/get ops for res_counter

KAMEZAWA Hiroyuki kamezawa.hiroyu at jp.fujitsu.com
Wed Nov 28 17:16:07 PST 2007


On Wed, 28 Nov 2007 14:09:26 +0300
Pavel Emelyanov <xemul at openvz.org> wrote:

> > +void res_counter_set(struct res_counter *res, int member,
> > +			unsigned long long newval)
> > +{
> > +	unsigned long long *val;
> > +
> > +	val = res_counter_member(res, member);
> > +	*val = newval;
> 
> You put locking here in the res_counter_write() (patch #1). Why
> is it missed here?
> 
Sorry, my mistake.
I'll drop this patch because automatic value adjustment patch will be dropped.

Thanks,
-Kame

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list