Skip to contentSkip to conversation

blk-throttle panic on 32bit machine after startup

BUG Haoran Luo 1 participant 1 message Oct 18, 2021

Subsystems (2)
lore
Share & tools
lore

Haoran Luo

author
#0 lore raw

(Sorry for the garbled message due to my mistaken the configuration of mutt)

I'm the college of the reporter and I would like to provide more information.

The code in 5.15-rc6 in "blk-throttle.c" around line 791 is written as below:

/*
* Previous slice has expired. We must have trimmed it after
* last
* bio dispatch. That means since start of last slice, we never
* used
* that bandwidth. Do try to make use of that bandwidth while
* giving
* credit.
*/
if (time_after_eq(start, tg->slice_start[rw]))
tg->slice_start[rw] = start;

I think this piece of code presumes all jiffies values are greater than 0, which is the initial value assigned when kzalloc-ing throtl_grp. It fails on 32-bit linux for the first 5 minutes after booting, since the jiffies value then will be less than 0.