block,bfq: Disable writeback throttling
Subsystems (2)
v2 cover block,bfq: Disable writeback throttling
This is the v2 of the previous patch[1]. There are no functional changes. The only difference from v1 to v2 is the fix of the wbt_disable_default's comment, thanks to Lee Tibbert who pointed me out that mistake.
[1]:https://www.mail-archive.com/[email protected]/msg12806.html
Luca Miccio (1):
block,bfq: Disable writeback throttling
block/bfq-iosched.c | 3 ++- block/blk-wbt.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
2.11.0
PATCH v2 1/1 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.
--- block/bfq-iosched.c | 3 ++- block/blk-wbt.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
block/bfq-iosched.c +2 -1
@@ -108,6 +108,7 @@#include "blk-mq-tag.h" #include "blk-mq-sched.h" #include "bfq-iosched.h" +#include "blk-wbt.h" #define BFQ_BFQQ_FNS (name) \ void bfq_mark_bfqq_##name(struct bfq_queue *bfqq) \
@@ -4775,7 +4776,7 @@ static int bfq_init_queue(struct request_queue *q, struct elevator_type *e)bfq_init_root_group (bfqd->root_group, bfqd);bfq_init_entity (&bfqd->oom_bfqq.entity, bfqd->root_group); - +wbt_disable_default (q);return 0 ; out_free:
block/blk-wbt.c +1 -1
@@ -654,7 +654,7 @@ void wbt_set_write_cache(struct rq_wb *rwb, bool write_cache_on) }/* -* Disable wbt, if enabled by default. Only called from CFQ. +* Disable wbt, if enabled by default. */ void wbt_disable_default (struct request_queue *q) {
Signature · 1 line
2.11.0
Quoted 4 lines · Luca Miccio
This is the v2 of the previous patch[1]. There are no functional changes. The only difference from v1 to v2 is the fix of the wbt_disable_default's comment, thanks to Lee Tibbert who pointed me out that mistake.
Applied, thanks.
Signature · 1 line
Jens Axboe