Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1283121

Re: [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of multi-destination migration from subtree_control enabling

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of multi-destination migration from subtree_control enabling
Date 2015-12-03 16:20 +0100
Message-ID <qBDPQ-6Rh-15@gated-at.bofh.it> (permalink)
References (2 earlier) <qyn4S-Xh-29@gated-at.bofh.it> <qyney-130-1@gated-at.bofh.it> <qynez-130-23@gated-at.bofh.it> <qAFqG-1ch-1@gated-at.bofh.it> <qAFqG-1ch-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Nov 30, 2015 at 05:44:31PM -0500, Tejun Heo wrote:
> From 0d7d444e260493252e30c70813c7657e9ede2f12 Mon Sep 17 00:00:00 2001
> From: Tejun Heo <tj@kernel.org>
> Date: Mon, 30 Nov 2015 17:24:34 -0500
> 
> Consider the following v2 hierarchy.
> 
>   P0 (+memory) --- P1 (-memory) --- A
>                                  \- B
> 
> P0 has memory enabled in its subtree_control while P1 doesn't.  If
> both A and B contain processes, they would belong to the memory css of
> P1.  Now if memory is enabled on P1's subtree_control, memory csses
> should be created on both A and B and A's processes should be moved to
> the former and B's processes the latter.  IOW, enabling controllers
> can cause atomic migrations into different csses.
> 
> The core cgroup migration logic has been updated accordingly but the
> controller migration methods haven't and still assume that all tasks
> migrate to a single target css; furthermore, the methods were fed the
> css in which subtree_control was updated which is the parent of the
> target csses.  pids controller depends on the migration methods to
> move charges and this made the controller attribute charges to the
> wrong csses often triggering the following warning by driving a
> counter negative.

Applying 1-2 to libata/for-4.4-fixes.

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH cgroup/for-4.4-fixes 1/2] cgroup_freezer: simplify  propagation of CGROUP_FROZEN clearing in freezer_attach() Tejun Heo <tj@kernel.org> - 2015-11-30 23:50 +0100
  [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of  multi-destination migration from subtree_control enabling Tejun Heo <tj@kernel.org> - 2015-11-30 23:50 +0100
    Re: [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of  multi-destination migration from subtree_control enabling Daniel Wagner <daniel.wagner@bmw-carit.de> - 2015-12-01 08:10 +0100
      Re: [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of  multi-destination migration from subtree_control enabling Tejun Heo <tj@kernel.org> - 2015-12-01 17:50 +0100
        Re: [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of  multi-destination migration from subtree_control enabling Daniel Wagner <daniel.wagner@bmw-carit.de> - 2015-12-02 07:30 +0100
    Re: [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of  multi-destination migration from subtree_control enabling Tejun Heo <tj@kernel.org> - 2015-12-03 16:20 +0100
      Re: [PATCH cgroup/for-4.4-fixes 2/3] cgroup: fix handling of  multi-destination migration from subtree_control enabling Tejun Heo <tj@kernel.org> - 2015-12-03 16:40 +0100

csiph-web