diff options
-rw-r--r-- | kernel/sched/core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index fe22f7510bce..cfeebb499e79 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -4387,10 +4387,7 @@ long __sched io_schedule_timeout(long timeout) | |||
4387 | long ret; | 4387 | long ret; |
4388 | 4388 | ||
4389 | current->in_iowait = 1; | 4389 | current->in_iowait = 1; |
4390 | if (old_iowait) | 4390 | blk_schedule_flush_plug(current); |
4391 | blk_schedule_flush_plug(current); | ||
4392 | else | ||
4393 | blk_flush_plug(current); | ||
4394 | 4391 | ||
4395 | delayacct_blkio_start(); | 4392 | delayacct_blkio_start(); |
4396 | rq = raw_rq(); | 4393 | rq = raw_rq(); |