From: Tejun Heo Subject: Re: [PATCH] cpuset: use trialcs->mems_allowed as a temp variable Date: Fri, 7 Aug 2015 10:59:07 -0400 Message-ID: <20150807145907.GC14626@mtj.duckdns.org> References: <1438870865-25468-1-git-send-email-alban@endocode.com> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Q902CIA9RkvY9EmznJbJHhg4PovF5rLhjAUCCKAXfck=; b=A98ZIp35XUxxMHHQJnkkptF/RLo5d2/+CEzqAVzbi3hFywkTJ5mTyHSKZxgyQ0j5Gt fJtflU2lZMbCkKhzVTr0dq6ayW3fycpk2yRz4fjF+j1z55RBNVDp0sotFeypa23BoL3w ylsEDhY1VtdZUbaQ3BcIzGQOlhnZcOogOA+yJmiGgdpohYNTwcZMMMdnUpTT+7NVvLMQ 6IgpkqZ9uKaeiwmaosco4y5o40ERodUusVDjCxtwTh5VlFlBD0ZrIyB1YH4j7pZEm57D iP2icfraxqZ6fyAg7ym8ZHVcO8quCTcURbfNPDfmrYDFrWUXvrroa/tr8/jM3XIxtZ3P oEOw== Content-Disposition: inline In-Reply-To: <1438870865-25468-1-git-send-email-alban-973cpzSjLbNWk0Htik3J/w@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: Alban Crequy Cc: Alban Crequy , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Iago Lopez Galeiras , Li Zefan 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. >=20 > 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= : >=20 > | 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# >=20 > 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. >=20 > Signed-off-by: Alban Crequy > Tested-by: Iago L=F3pez Galeiras Li? --=20 tejun