Messages in this thread | | | Date | Tue, 24 May 2011 10:13:57 +0200 | From | Jens Axboe <> | Subject | Re: [PATCH 1/4] cfq-iosched: algebraic simplification in cfq_prio_to_maxrq() |
| |
On 2011-05-24 05:18, Namhyung Kim wrote: > Simplify the calculation in cfq_prio_to_maxrq(), plus replace CFQ_PRIO_LISTS to > IOPRIO_BE_NR since they are the same and IOPRIO_BE_NR looks more reasonable in > this context IMHO.
Double checked your math, it is indeed identical to 2*base_rq*IOPRIO_BE_NR - 2*base_rq*cfqq->ioprio. Looks a lot cleaner, thanks.
-- Jens Axboe
| |