Re: [PATCH] block/bfq: the delta_from_first should be ns rather than us

From: Jens Axboe
Date: Wed Jul 21 2021 - 12:19:26 EST


On 7/21/21 1:54 AM, Paolo Valente wrote:
>
>
>> Il giorno 21 lug 2021, alle ore 08:30, liubaozhu <liubaozhu@xxxxxxxxxxxxx <mailto:liubaozhu@xxxxxxxxxxxxx>> ha scritto:
>>
>> In the block/bfq-iosched.c,the function bfq_update_peak_rate(),
>> bfqd->delta_from_first = now_ns - bfqd->first_dispatch,
>> according to the subtraction operation here,now_ns is ns,
>> and bfqd->first_dispatch is also ns,so bfqd->delta_from_first should be ns.
>>
>
> Correct!
>
> Acked-by: Paolo Valente <paolo.valente@xxxxxxxxxx <mailto:paolo.valente@xxxxxxxxxx>>

Just pick this up for your 5.15 series and include it in that.

--
Jens Axboe