Commit dddb7451 authored by Corrado Zoccolo's avatar Corrado Zoccolo Committed by Jens Axboe

cfq-iosched: simplify prio-unboost code

Eliminate redundant checks.
Signed-off-by: default avatarCorrado Zoccolo <czoccolo@gmail.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent ab0a9735
...@@ -2359,11 +2359,9 @@ static void cfq_prio_boost(struct cfq_queue *cfqq) ...@@ -2359,11 +2359,9 @@ static void cfq_prio_boost(struct cfq_queue *cfqq)
cfqq->ioprio = IOPRIO_NORM; cfqq->ioprio = IOPRIO_NORM;
} else { } else {
/* /*
* check if we need to unboost the queue * unboost the queue (if needed)
*/ */
if (cfqq->ioprio_class != cfqq->org_ioprio_class)
cfqq->ioprio_class = cfqq->org_ioprio_class; cfqq->ioprio_class = cfqq->org_ioprio_class;
if (cfqq->ioprio != cfqq->org_ioprio)
cfqq->ioprio = cfqq->org_ioprio; cfqq->ioprio = cfqq->org_ioprio;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment