Re: [PATCH] avoid race condition in pick_next_task_fair in kernel/sched_fair.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Tuesday, June 29, 2010 - 4:35 am

On Tue, 2010-06-29 at 19:24 +0800, shenghui wrote:


Well, if your machine crashes that way, maybe, but I haven't seen that
happen in a long while.


Pretty much everywhere, if you look at sched.c the only sched_class
method not called with rq->lock held is ::task_fork().

The interesting bits are that schedule()->pre_schedule()/idle_balance()
can drop rq->lock as well as ->select_task_rq().



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

Messages in current thread:
Re: [PATCH] avoid race condition in pick_next_task_fair in ..., Peter Zijlstra, (Tue Jun 29, 4:35 am)
[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)