Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block, bfq: remove unused bfq_wr_max_time in struct bfq_data

bfqd->bfq_wr_max_time is set to 0 in bfq_init_queue and is never changed.
It is only used in bfq_wr_duration when bfq_wr_max_time > 0 which never
meets, so bfqd->bfq_wr_max_time is not used actually. Just remove it.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230116095153.3810101-9-shikemeng@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Kemeng Shi and committed by
Jens Axboe
323745a3 87c971de

-6
-4
block/bfq-iosched.c
··· 1093 1093 { 1094 1094 u64 dur; 1095 1095 1096 - if (bfqd->bfq_wr_max_time > 0) 1097 - return bfqd->bfq_wr_max_time; 1098 - 1099 1096 dur = bfqd->rate_dur_prod; 1100 1097 do_div(dur, bfqd->peak_rate); 1101 1098 ··· 7296 7299 */ 7297 7300 bfqd->bfq_wr_coeff = 30; 7298 7301 bfqd->bfq_wr_rt_max_time = msecs_to_jiffies(300); 7299 - bfqd->bfq_wr_max_time = 0; 7300 7302 bfqd->bfq_wr_min_idle_time = msecs_to_jiffies(2000); 7301 7303 bfqd->bfq_wr_min_inter_arr_async = msecs_to_jiffies(500); 7302 7304 bfqd->bfq_wr_max_softrt_rate = 7000; /*
-2
block/bfq-iosched.h
··· 769 769 * is multiplied. 770 770 */ 771 771 unsigned int bfq_wr_coeff; 772 - /* maximum duration of a weight-raising period (jiffies) */ 773 - unsigned int bfq_wr_max_time; 774 772 775 773 /* Maximum weight-raising duration for soft real-time processes */ 776 774 unsigned int bfq_wr_rt_max_time;