Explorar o código

Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull scheduler fix from Ingo Molnar:
 "A single sched/rt corner case fix for RLIMIT_RTIME correctness"

* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  sched: Fix RLIMIT_RTTIME when PI-boosting to RT
Linus Torvalds %!s(int64=10) %!d(string=hai) anos
pai
achega
19dba4f3e9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      kernel/sched/core.c

+ 2 - 0
kernel/sched/core.c

@@ -3034,6 +3034,8 @@ void rt_mutex_setprio(struct task_struct *p, int prio)
 	} else {
 	} else {
 		if (dl_prio(oldprio))
 		if (dl_prio(oldprio))
 			p->dl.dl_boosted = 0;
 			p->dl.dl_boosted = 0;
+		if (rt_prio(oldprio))
+			p->rt.timeout = 0;
 		p->sched_class = &fair_sched_class;
 		p->sched_class = &fair_sched_class;
 	}
 	}