diff options
-rw-r--r-- | block/cfq-iosched.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 418da9a49bb0..757010d8fb7a 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -2359,12 +2359,10 @@ static void cfq_prio_boost(struct cfq_queue *cfqq) | |||
2359 | cfqq->ioprio = IOPRIO_NORM; | 2359 | cfqq->ioprio = IOPRIO_NORM; |
2360 | } else { | 2360 | } else { |
2361 | /* | 2361 | /* |
2362 | * check if we need to unboost the queue | 2362 | * unboost the queue (if needed) |
2363 | */ | 2363 | */ |
2364 | if (cfqq->ioprio_class != cfqq->org_ioprio_class) | 2364 | cfqq->ioprio_class = cfqq->org_ioprio_class; |
2365 | cfqq->ioprio_class = cfqq->org_ioprio_class; | 2365 | cfqq->ioprio = cfqq->org_ioprio; |
2366 | if (cfqq->ioprio != cfqq->org_ioprio) | ||
2367 | cfqq->ioprio = cfqq->org_ioprio; | ||
2368 | } | 2366 | } |
2369 | } | 2367 | } |
2370 | 2368 | ||