aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDespairFactor <matthewalex@outlook.com>2016-06-03 09:52:00 -0400
committerMoyster <oysterized@gmail.com>2016-09-01 12:07:02 +0200
commitd26799e42c25e0ba61bdb948115be0787555ddb6 (patch)
treed43af7ed156d0d3f38e06677cebd54f99512168e
parent273435b336fcc582ea2a5aac68b13cfc74c2553e (diff)
block: set slice_idle to 0 on bfq and cfq
Credits to Cl3Kener for original commit
-rw-r--r--block/bfq-iosched.c4
-rw-r--r--block/cfq-iosched.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index 014984d19..b1a10b779 100644
--- a/block/bfq-iosched.c
+++ b/block/bfq-iosched.c
@@ -80,7 +80,7 @@ static const int bfq_back_max = 16 * 1024;
static const int bfq_back_penalty = 2;
/* Idling period duration, in jiffies. */
-static int bfq_slice_idle = HZ / 125;
+static int bfq_slice_idle = 0;
/* Default maximum budget values, in sectors and number of requests. */
static const int bfq_default_max_budget = 16 * 1024;
@@ -4174,7 +4174,7 @@ static int __init bfq_init(void)
* Can be 0 on HZ < 1000 setups.
*/
if (bfq_slice_idle == 0)
- bfq_slice_idle = 1;
+ bfq_slice_idle = 0;
if (bfq_timeout_async == 0)
bfq_timeout_async = 1;
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 1c03dc1cf..1080d6778 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -30,7 +30,7 @@ static const int cfq_back_penalty = 2;
static const int cfq_slice_sync = HZ / 10;
static int cfq_slice_async = HZ / 25;
static const int cfq_slice_async_rq = 2;
-static int cfq_slice_idle = HZ / 125;
+static int cfq_slice_idle = 0;
static int cfq_group_idle = HZ / 125;
static const int cfq_target_latency = HZ * 3/10; /* 300 ms */
static const int cfq_hist_divisor = 4;
@@ -4618,7 +4618,7 @@ static int __init cfq_init(void)
if (!cfq_slice_async)
cfq_slice_async = 1;
if (!cfq_slice_idle)
- cfq_slice_idle = 1;
+ cfq_slice_idle = 0;
#ifdef CONFIG_CFQ_GROUP_IOSCHED
if (!cfq_group_idle)