Re: [PATCH] sched, cgroup: Use exit hook to avoid use-after-free crash

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Menage
Date: Saturday, December 25, 2010 - 1:59 pm

On Fri, Dec 24, 2010 at 3:59 PM, Peter Zijlstra <peterz@infradead.org> wrote:

While this patch is likely fine for solving the problem, it does add
extra work into the task exit path.

Could you instead just use the pre_destroy callback to return -EBUSY
if there are still any tasks on the cfs_rq? That way there'd only be a
penalty on cgroup destruction, which is a much rarer operation.

Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] sched, cgroup: Use exit hook to avoid use-afte ..., Paul Menage, (Sat Dec 25, 1:59 pm)
[tip:sched/core] sched, autogroup: Fix reference leak, tip-bot for Mike Gal ..., (Tue Jan 4, 7:19 am)
Re: [tip:sched/core] sched, autogroup: Fix reference leak, Mike Galbraith, (Tue Jan 4, 12:06 pm)