summaryrefslogtreecommitdiffstats
path: root/block/bfq-iosched.h
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2023-01-16 10:51:53 +0100
committerJens Axboe <axboe@kernel.dk>2023-01-30 04:03:49 +0100
commit323745a3aa9ba172582d4549689146298fb68405 (patch)
treeb7401d6adc2f7dd47ffdd9e416dacaaa5fec4051 /block/bfq-iosched.h
parentblock, bfq: remove unnecessary goto tag in bfq_dispatch_rq_from_bfqq (diff)
downloadlinux-323745a3aa9ba172582d4549689146298fb68405.tar.xz
linux-323745a3aa9ba172582d4549689146298fb68405.zip
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>
Diffstat (limited to '')
-rw-r--r--block/bfq-iosched.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/block/bfq-iosched.h b/block/bfq-iosched.h
index 2b4893a68b43..75cc6a324267 100644
--- a/block/bfq-iosched.h
+++ b/block/bfq-iosched.h
@@ -769,8 +769,6 @@ struct bfq_data {
* is multiplied.
*/
unsigned int bfq_wr_coeff;
- /* maximum duration of a weight-raising period (jiffies) */
- unsigned int bfq_wr_max_time;
/* Maximum weight-raising duration for soft real-time processes */
unsigned int bfq_wr_rt_max_time;