Re: [patch 1/8] Add rt_nr_running accounting

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steven Rostedt <rostedt@...>
Cc: LKML <linux-kernel@...>, RT <linux-rt-users@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, Gregory Haskins <ghaskins@...>, Peter Zijlstra <a.p.zijlstra@...>
Date: Saturday, October 20, 2007 - 12:45 pm

On 19/10/2007, Steven Rostedt <rostedt@goodmis.org> wrote:

could it be a part of the 'struct rt_rq' instead?


why do you need the rt_task(p) check in {inc,dec}_rt_tasks() ?

{enqueue,dequeue}_task_rt() seem to be the only callers and they will
crash (or corrupt memory) anyway in the case of ! rt_task(p) (sure,
this case would mean something is broken somewhere wrt sched_class
handling).


-- 
Best regards,
Dmitry Adamushko
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 1/8] Add rt_nr_running accounting, Steven Rostedt, (Fri Oct 19, 2:42 pm)
Re: [patch 1/8] Add rt_nr_running accounting, Dmitry Adamushko, (Sat Oct 20, 12:45 pm)
Re: [patch 1/8] Add rt_nr_running accounting, Steven Rostedt, (Sat Oct 20, 10:13 pm)