lkml.org 
[lkml]   [2008]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] res_counter: fix off-by-one bug in setting limit
Li Zefan wrote:
> I found we can no longer set limit to 0 with 2.6.27-rcX:
> # mount -t cgroup -omemory xxx /mnt
> # mkdir /mnt/0
> # echo 0 > /mnt/0/memory.limit_in_bytes
> bash: echo: write error: Device or resource busy
>
> It turned out 'limit' can't be set to 'usage', which is wrong IMO.
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>

OK, based on Kamezawa's feedback and looking at the patch

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

--
Balbir


\
 
 \ /
  Last update: 2008-09-01 08:31    [W:3.706 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site