Add 0300-Disable-writeback-throttling.patch

parent d1817ac9
From ae03cf65d57bb48c008c8d01aa30b55edfb62e04 Mon Sep 17 00:00:00 2001
From: Luca Miccio <lucmiccio@gmail.com>
Date: Fri, 8 Sep 2017 11:50:39 +0200
Subject: [PATCH] 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>
---
block/bfq-iosched.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index 436b6ca6b175..4feae52c6d3e 100644
--- a/block/bfq-iosched.c
+++ b/block/bfq-iosched.c
@@ -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) \
@@ -4760,7 +4761,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:
--
2.14.1
......@@ -88,6 +88,7 @@
│   ├── 0200-BFQ-MQ-bugfix-from-pfkernel-2.patch
│   ├── 0200-BFQ-MQ-bugfix-from-pfkernel-3.patch
│   ├── 0200-BFQ-MQ-bugfix-from-pfkernel-4.patch
│   ├── 0300-Disable-writeback-throttling.patch
│   ├── 4.13-bfq-mq-git-20170904.patch
│   ├── blk-mq-from-pfkernel
│   │   ├── 0040-blk-mq-add-requests-in-the-tail-of-hctx->dispatch.patch
......@@ -113,4 +114,4 @@
├── Files
└── README.md
11 directories, 102 files
11 directories, 103 files
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment