lkml.org 
[lkml]   [2008]   [Nov]   [20]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 20 Nov 2008 13:49:24 +0530
FromBharata B Rao <>
SubjectRe: [PATCH] sched: Don't allow priority switch to realtime when the task doesn't belong to init_task_group and when CONFIG_RT_GROUP_SCHED isn't set
On Thu, Nov 20, 2008 at 08:58:29AM +0100, Ingo Molnar wrote:
> <snip>
> hm, another option would be, instead of denying something (which 
> denial might not even be noticed by the app) that the app clearly has 
> enough privilege to request - to just act upon it and move the task to 
> the init_task_group?

Thought about that option, but decided against it because:

- The task was started in a group which is not "equipped" to handle
  rt tasks (no rt_rq for the group because CONFIG_RT_GROUP_SCHED=n). So
  the task shouldn't have been started in such a group in the first
  place.
- We could move the task silently to init_task_group (which is kind
  of done now with the task being placed in init_task_group's rq), but
  that's not what a user would have expected when he started a task
  under a group.

Also, silently moving the task to init_task_group would cause confusion
later when the task drops the RT privilege. As Dhaval is asking in the
other thread, which group do we move it to now ?

Regards,
Bharata.


\
 
 \ /
  Last update: 2008-11-20 09:21    [from the cache]
©2003-2008