2022-11-12 00:28:34

by Khazhy Kumykov

[permalink] [raw]
Subject: [PATCH] bfq: use configured slice_idle in bfq_bfqq_is_slow

Missing a bfqd->, so we'd only ever use the default value here.

Fixes: ab0e43e9cea0 ("block, bfq: modify the peak-rate estimator")
Signed-off-by: Khazhismel Kumykov <[email protected]>
---
block/bfq-iosched.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index 267baf84870f..827b878a0266 100644
--- a/block/bfq-iosched.c
+++ b/block/bfq-iosched.c
@@ -4160,7 +4160,7 @@ static bool bfq_bfqq_is_slow(struct bfq_data *bfqd, struct bfq_queue *bfqq,
*/
*delta_ms = BFQ_MIN_TT / NSEC_PER_MSEC;
else /* charge at least one seek */
- *delta_ms = bfq_slice_idle / NSEC_PER_MSEC;
+ *delta_ms = bfqd->bfq_slice_idle / NSEC_PER_MSEC;

return slow;
}
--
2.38.1.431.g37b22c650d-goog