Re: [PATCH] cpuset: use trialcs->mems_allowed as a temp variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 06, 2015 at 04:21:05PM +0200, Alban Crequy wrote:
> The comment says it's using trialcs->mems_allowed as a temp variable but
> it didn't match the code. Change the code to match the comment.
> 
> This fixes an issue when writing in cpuset.mems when a sub-directory
> exists: we need to write several times for the information to persist:
> 
> | root@alban:/sys/fs/cgroup/cpuset# mkdir footest9
> | root@alban:/sys/fs/cgroup/cpuset# cd footest9
> | root@alban:/sys/fs/cgroup/cpuset/footest9# mkdir aa
> | root@alban:/sys/fs/cgroup/cpuset/footest9# cat cpuset.mems
> |
> | root@alban:/sys/fs/cgroup/cpuset/footest9# echo 0 > cpuset.mems
> | root@alban:/sys/fs/cgroup/cpuset/footest9# cat cpuset.mems
> |
> | root@alban:/sys/fs/cgroup/cpuset/footest9# echo 0 > cpuset.mems
> | root@alban:/sys/fs/cgroup/cpuset/footest9# cat cpuset.mems
> | 0
> | root@alban:/sys/fs/cgroup/cpuset/footest9# cat aa/cpuset.mems
> |
> | root@alban:/sys/fs/cgroup/cpuset/footest9# echo 0 > aa/cpuset.mems
> | root@alban:/sys/fs/cgroup/cpuset/footest9# cat aa/cpuset.mems
> | 0
> | root@alban:/sys/fs/cgroup/cpuset/footest9#
> 
> This should help to fix the following issue in Docker:
> https://github.com/opencontainers/runc/issues/133
> In some conditions, a Docker container needs to be started twice in
> order to work.
> 
> Signed-off-by: Alban Crequy <alban@xxxxxxxxxxxx>
> Tested-by: Iago López Galeiras <iago@xxxxxxxxxxxx>

Li?

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux