diff options
author | Luca Miccio <lucmiccio@gmail.com> | 2017-10-09 10:27:21 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-10-09 10:29:21 -0400 |
commit | b5dc5d4d1f4ff9032eb6c21a3c571a1317dc9289 (patch) | |
tree | c07e1fdfef55d45a0a879869e62a006b37ad60fc /block/bfq-iosched.c | |
parent | 94af584692091347baea4d810b9fc6e0f5483d42 (diff) |
block,bfq: Disable writeback throttling
Similarly to CFQ, BFQ has its write-throttling heuristics, and it
is better not to combine them with further write-throttling
heuristics of a different nature.
So this commit disables write-back throttling for a device if BFQ
is used as I/O scheduler for that device.
Signed-off-by: Luca Miccio <lucmiccio@gmail.com>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Tested-by: Lee Tibbert <lee.tibbert@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-iosched.c')
-rw-r--r-- | block/bfq-iosched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index 70f9177c4f5b..261f98695910 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c | |||
@@ -108,6 +108,7 @@ | |||
108 | #include "blk-mq-tag.h" | 108 | #include "blk-mq-tag.h" |
109 | #include "blk-mq-sched.h" | 109 | #include "blk-mq-sched.h" |
110 | #include "bfq-iosched.h" | 110 | #include "bfq-iosched.h" |
111 | #include "blk-wbt.h" | ||
111 | 112 | ||
112 | #define BFQ_BFQQ_FNS(name) \ | 113 | #define BFQ_BFQQ_FNS(name) \ |
113 | void bfq_mark_bfqq_##name(struct bfq_queue *bfqq) \ | 114 | void bfq_mark_bfqq_##name(struct bfq_queue *bfqq) \ |
@@ -4810,7 +4811,7 @@ static int bfq_init_queue(struct request_queue *q, struct elevator_type *e) | |||
4810 | bfq_init_root_group(bfqd->root_group, bfqd); | 4811 | bfq_init_root_group(bfqd->root_group, bfqd); |
4811 | bfq_init_entity(&bfqd->oom_bfqq.entity, bfqd->root_group); | 4812 | bfq_init_entity(&bfqd->oom_bfqq.entity, bfqd->root_group); |
4812 | 4813 | ||
4813 | 4814 | wbt_disable_default(q); | |
4814 | return 0; | 4815 | return 0; |
4815 | 4816 | ||
4816 | out_free: | 4817 | out_free: |