mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Priority Inheritance] SCHED_FIFO or SCHED_RR?
@ 2011-09-27 23:06 Tadeus (Eus) Prastowo
  2011-09-28 12:38 ` Tadeus (Eus) Prastowo
  2011-09-30 19:12 ` Tadeus (Eus) Prastowo
  0 siblings, 2 replies; 8+ messages in thread
From: Tadeus (Eus) Prastowo @ 2011-09-27 23:06 UTC (permalink / raw)
  To: linux-kernel

Hi!

When a SCHED_RR task with RT priority X blocks on a
priority-inheriting mutex held by a SCHED_NORMAL task with nice value
Y, RT-Mutex code will change the SCHED_NORMAL task priority to that of
the SCHED_RR task and based on the new priority, will change the
scheduling class too. But, each task retains its own scheduling
policy.

This means that the task inheriting the SCHED_RR priority will be
scheduled using SCHED_FIFO policy because task_tick_rt does not
enforce the SCHED_RR time slice when the task policy is not SCHED_RR.

Why should a SCHED_NORMAL task inheriting the priority of a SCHED_RR
task get the privilege of SCHED_FIFO task for running as long as it
wishes even when the task giving the inheritance does not have such
privilege?

Thank you very much.

Please kindly put me in the CC since I am not subscribed to the list.

--
Eus

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-10-02 15:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-27 23:06 [Priority Inheritance] SCHED_FIFO or SCHED_RR? Tadeus (Eus) Prastowo
2011-09-28 12:38 ` Tadeus (Eus) Prastowo
2011-09-30 19:12 ` Tadeus (Eus) Prastowo
2011-10-01  5:41   ` Mike Galbraith
2011-10-01 20:29     ` Tadeus (Eus) Prastowo
2011-10-01 20:31       ` Tadeus (Eus) Prastowo
2011-10-02  7:50       ` Mike Galbraith
2011-10-02 15:32         ` Tadeus (Eus) Prastowo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome