[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALdu-PDVzDzJWmyUB4vqR5qYVbMPgtM4BE4BwC3wk5ah0VzQcw@mail.gmail.com>
Date: Thu, 25 Aug 2011 02:32:35 -0700
From: Paul Menage <paul@...lmenage.org>
To: Tejun Heo <tj@...nel.org>
Cc: rjw@...k.pl, lizf@...fujitsu.com,
linux-pm@...ts.linux-foundation.org, linux-kernel@...r.kernel.org,
containers@...ts.linux-foundation.org,
Balbir Singh <bsingharora@...il.com>,
Daisuke Nishimura <nishimura@....nes.nec.co.jp>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
James Morris <jmorris@...ei.org>
Subject: Re: [PATCH 3/6] cgroup: introduce cgroup_taskset and use it in
subsys->can_attach(), cancel_attach() and attach()
On Thu, Aug 25, 2011 at 2:20 AM, Tejun Heo <tj@...nel.org> wrote:
>
> I think having separate ->attach() and ->attach_task() is inherently
> broken. Look at the memcg discussion I had in this thread for
> reference and as soon as we need to do something across the tasks
> being migrated, iteration-by-callback becomes very painful.
> e.g. let's say memcg wants to find the mm->owner and wants to print
> warning or fail if that doesn't work out. How would that be
> implemented if it's iterating by callback.
OK, fair point. See my other email for patch comments.
Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists