* [PATCH v2 0/1] block,bfq: Disable writeback throttling
@ 2017-10-09 14:27 Luca Miccio
2017-10-09 14:27 ` [PATCH V2 1/1] " Luca Miccio
2017-10-09 14:29 ` [PATCH v2 0/1] " Jens Axboe
0 siblings, 2 replies; 3+ messages in thread
From: Luca Miccio @ 2017-10-09 14:27 UTC (permalink / raw)
To: axboe; +Cc: paolo.valente, linux-block, linux-kernel
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/linux-block@vger.kernel.org/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(-)
--
2.11.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH V2 1/1] block,bfq: Disable writeback throttling
2017-10-09 14:27 [PATCH v2 0/1] block,bfq: Disable writeback throttling Luca Miccio
@ 2017-10-09 14:27 ` Luca Miccio
2017-10-09 14:29 ` [PATCH v2 0/1] " Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Luca Miccio @ 2017-10-09 14:27 UTC (permalink / raw)
To: axboe; +Cc: paolo.valente, linux-block, linux-kernel
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>
---
block/bfq-iosched.c | 3 ++-
block/blk-wbt.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index a4783da90ba8..0f860cf0d56d 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) \
@@ -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:
diff --git a/block/blk-wbt.c b/block/blk-wbt.c
index 6a9a0f03a67b..e59d59c11ebb 100644
--- a/block/blk-wbt.c
+++ b/block/blk-wbt.c
@@ -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)
{
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2 0/1] block,bfq: Disable writeback throttling
2017-10-09 14:27 [PATCH v2 0/1] block,bfq: Disable writeback throttling Luca Miccio
2017-10-09 14:27 ` [PATCH V2 1/1] " Luca Miccio
@ 2017-10-09 14:29 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2017-10-09 14:29 UTC (permalink / raw)
To: Luca Miccio; +Cc: paolo.valente, linux-block, linux-kernel
On 10/09/2017 08:27 AM, Luca Miccio wrote:
> 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.
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-09 14:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-09 14:27 [PATCH v2 0/1] block,bfq: Disable writeback throttling Luca Miccio
2017-10-09 14:27 ` [PATCH V2 1/1] " Luca Miccio
2017-10-09 14:29 ` [PATCH v2 0/1] " Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox