diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 12:53:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 12:53:32 -0400 |
commit | d54d14bfb49f0b61aed9f20cb84cb692566cf83b (patch) | |
tree | ad09c5b88c4c641e3ad56b561ab29ab82de6555e /kernel/sched/core.c | |
parent | 624483f3ea82598ab0f62f1bdb9177f531ab1892 (diff) | |
parent | 09dc4ab03936df5c5aa711d27c81283c6d09f495 (diff) |
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixes from Ingo Molnar:
"Four misc fixes: each was deemed serious enough to warrant v3.15
inclusion"
* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched/fair: Fix tg_set_cfs_bandwidth() deadlock on rq->lock
sched/dl: Fix race in dl_task_timer()
sched: Fix sched_policy < 0 comparison
sched/numa: Fix use of spin_{un}lock_irq() when interrupts are disabled
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r-- | kernel/sched/core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 0a7251678982..084d17f89139 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -3685,7 +3685,7 @@ SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr, | |||
3685 | if (retval) | 3685 | if (retval) |
3686 | return retval; | 3686 | return retval; |
3687 | 3687 | ||
3688 | if (attr.sched_policy < 0) | 3688 | if ((int)attr.sched_policy < 0) |
3689 | return -EINVAL; | 3689 | return -EINVAL; |
3690 | 3690 | ||
3691 | rcu_read_lock(); | 3691 | rcu_read_lock(); |
@@ -7751,8 +7751,7 @@ static int tg_set_cfs_bandwidth(struct task_group *tg, u64 period, u64 quota) | |||
7751 | /* restart the period timer (if active) to handle new period expiry */ | 7751 | /* restart the period timer (if active) to handle new period expiry */ |
7752 | if (runtime_enabled && cfs_b->timer_active) { | 7752 | if (runtime_enabled && cfs_b->timer_active) { |
7753 | /* force a reprogram */ | 7753 | /* force a reprogram */ |
7754 | cfs_b->timer_active = 0; | 7754 | __start_cfs_bandwidth(cfs_b, true); |
7755 | __start_cfs_bandwidth(cfs_b); | ||
7756 | } | 7755 | } |
7757 | raw_spin_unlock_irq(&cfs_b->lock); | 7756 | raw_spin_unlock_irq(&cfs_b->lock); |
7758 | 7757 | ||