Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288755
b: refs/heads/master
c: 3c7d518
h: refs/heads/master
i:
  288753: 9534b0c
  288751: b9a20c8
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Mar 1, 2012
1 parent 6ada2c9 commit 3738c89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c4dd99bed5f6f70932bf8dacdd54d04a2619778
refs/heads/master: 3c7d51843b03a6839e9ec7cda724e54d2319a63a
8 changes: 8 additions & 0 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -2082,12 +2082,20 @@ extern unsigned int sysctl_sched_cfs_bandwidth_slice;
extern int rt_mutex_getprio(struct task_struct *p);
extern void rt_mutex_setprio(struct task_struct *p, int prio);
extern void rt_mutex_adjust_pi(struct task_struct *p);
static inline bool tsk_is_pi_blocked(struct task_struct *tsk)
{
return tsk->pi_blocked_on != NULL;
}
#else
static inline int rt_mutex_getprio(struct task_struct *p)
{
return p->normal_prio;
}
# define rt_mutex_adjust_pi(p) do { } while (0)
static inline bool tsk_is_pi_blocked(struct task_struct *tsk)
{
return false;
}
#endif

extern bool yield_to(struct task_struct *p, bool preempt);
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3227,7 +3227,7 @@ static void __sched __schedule(void)

static inline void sched_submit_work(struct task_struct *tsk)
{
if (!tsk->state)
if (!tsk->state || tsk_is_pi_blocked(tsk))
return;
/*
* If we are going to sleep and we have plugged IO queued,
Expand Down

0 comments on commit 3738c89

Please sign in to comment.