Created
January 18, 2018 19:14
-
-
Save pfactum/4339e7b61d221f712ff252740296e1b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 91ac7cd4d9c24c0f4fb1fad3c01d9527cb6aa36d Mon Sep 17 00:00:00 2001 | |
From: Oleksandr Natalenko <oleksandr@natalenko.name> | |
Date: Thu, 18 Jan 2018 20:13:34 +0100 | |
Subject: [PATCH] pds-4.15: fix delayacct_blkio_end() usage | |
Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name> | |
--- | |
kernel/sched/pds.c | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/kernel/sched/pds.c b/kernel/sched/pds.c | |
index e2407525dd06..a04638bc7068 100644 | |
--- a/kernel/sched/pds.c | |
+++ b/kernel/sched/pds.c | |
@@ -2133,7 +2133,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, | |
p->state = TASK_WAKING; | |
if (p->in_iowait) { | |
- delayacct_blkio_end(); | |
+ delayacct_blkio_end(p); | |
atomic_dec(&task_rq(p)->nr_iowait); | |
} | |
@@ -2147,7 +2147,7 @@ static int try_to_wake_up(struct task_struct *p, unsigned int state, | |
#else /* CONFIG_SMP */ | |
if (p->in_iowait) { | |
- delayacct_blkio_end(); | |
+ delayacct_blkio_end(p); | |
atomic_dec(&task_rq(p)->nr_iowait); | |
} | |
prq = cpu_rq(cpu); | |
@@ -2204,7 +2204,7 @@ static void try_to_wake_up_local(struct task_struct *p) | |
if (!task_queued(p)) { | |
if (p->in_iowait) { | |
- delayacct_blkio_end(); | |
+ delayacct_blkio_end(p); | |
atomic_dec(&task_rq(p)->nr_iowait); | |
} | |
-- | |
2.15.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment