diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 5049d959bb26..969dfaef2465 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2343,7 +2343,11 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, | |||
2343 | /* | 2343 | /* |
2344 | * In order to handle concurrent wakeups and release the rq->lock | 2344 | * In order to handle concurrent wakeups and release the rq->lock |
2345 | * we put the task in TASK_WAKING state. | 2345 | * we put the task in TASK_WAKING state. |
2346 | * | ||
2347 | * First fix up the nr_uninterruptible count: | ||
2346 | */ | 2348 | */ |
2349 | if (task_contributes_to_load(p)) | ||
2350 | rq->nr_uninterruptible--; | ||
2347 | p->state = TASK_WAKING; | 2351 | p->state = TASK_WAKING; |
2348 | task_rq_unlock(rq, &flags); | 2352 | task_rq_unlock(rq, &flags); |
2349 | 2353 | ||