[RFC][for -mm] memory controller enhancements for reclaiming take2 [4/8] possible race fix in res_counter

Balbir Singh balbir at linux.vnet.ibm.com
Tue Dec 4 11:02:56 PST 2007


KAMEZAWA Hiroyuki wrote:
> spinlock is necessary when someone changes res->counter value.
> splited out from YAMAMOTO's background page reclaim for memory cgroup set.
> 
> Changelog v1 -> v2:
>  - fixed type of "flags".
> 
> 
> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com>
> From: YAMAMOTO Takashi <yamamoto at valinux.co.jp>

Looks sane to me

Acked-by: Balbir Singh <balbir at linux.vnet.ibm.com>

-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL


More information about the Containers mailing list