summaryrefslogtreecommitdiffstats
path: root/block/bfq-iosched.h
diff options
context:
space:
mode:
authorPaolo Valente <paolo.valente@linaro.org>2021-01-25 20:02:46 +0100
committerJens Axboe <axboe@kernel.dk>2021-01-25 14:18:34 -0700
commite673914d52f913584cc4c454dfcff2e8eb04533f (patch)
treea520b68aca0f70c42be6931c5e69b29b7a09f8c4 /block/bfq-iosched.h
parentd1f600fa4732dac36c71a03b790f0c829a076475 (diff)
downloadlinux-e673914d52f913584cc4c454dfcff2e8eb04533f.tar.gz
linux-e673914d52f913584cc4c454dfcff2e8eb04533f.tar.bz2
linux-e673914d52f913584cc4c454dfcff2e8eb04533f.zip
block, bfq: save also weight-raised service on queue merging
To prevent weight-raising information from being lost on bfq_queue merging, also the amount of service that a bfq_queue receives must be saved and restored when the bfq_queue is merged and split, respectively. Tested-by: Jan Kara <jack@suse.cz> Signed-off-by: Paolo Valente <paolo.valente@linaro.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-iosched.h')
-rw-r--r--block/bfq-iosched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/bfq-iosched.h b/block/bfq-iosched.h
index c913b06016b3..d15299d59f89 100644
--- a/block/bfq-iosched.h
+++ b/block/bfq-iosched.h
@@ -440,6 +440,7 @@ struct bfq_io_cq {
*/
unsigned long saved_wr_coeff;
unsigned long saved_last_wr_start_finish;
+ unsigned long saved_service_from_wr;
unsigned long saved_wr_start_at_switch_to_srt;
unsigned int saved_wr_cur_max_time;
struct bfq_ttime saved_ttime;