[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160413193734.GC20142@htj.duckdns.org>
Date: Wed, 13 Apr 2016 15:37:34 -0400
From: Tejun Heo <tj@...nel.org>
To: Michal Hocko <mhocko@...nel.org>
Cc: Petr Mladek <pmladek@...e.com>, cgroups@...r.kernel.org,
Cyril Hrubis <chrubis@...e.cz>, linux-kernel@...r.kernel.org,
Johannes Weiner <hannes@...xchg.org>
Subject: Re: [BUG] cgroup/workques/fork: deadlock when moving cgroups
Hello, Michal.
On Wed, Apr 13, 2016 at 09:23:14PM +0200, Michal Hocko wrote:
> I think we can live without lru_add_drain_all() in the migration path.
> We are talking about 4 pagevecs so 56 pages. The charge migration is
Ah, nice.
> racy anyway. What concerns me more is how all this is fragile. It sounds
> just too easy to add a dependency on per-cpu sync work later and
> reintroduce this issue which is quite hard to detect.
> Cannot we come up with something more robust? Or at least warn when we
> try to use per-cpu workers with problematic locks held?
Yeah, workqueue does limited lockdep annotation but it doesn't
integrate fully with the rest of dependency tracking. It'd be nice to
have that. Don't know how to tho.
Thanks.
--
tejun
Powered by blists - more mailing lists