diff options
author | Shaohua Li <shli@fb.com> | 2017-03-27 20:51:38 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-03-28 17:02:20 +0300 |
commit | d61fcfa4bb18992dc8e171996808e1034dc643bb (patch) | |
tree | b604e697ded4fdb51b750b35bfbe76436d2c34f6 /block/blk-sysfs.c | |
parent | 297e3d854784821d3b8ff3ae117f20d71f125504 (diff) | |
download | linux-d61fcfa4bb18992dc8e171996808e1034dc643bb.tar.xz |
blk-throttle: choose a small throtl_slice for SSD
The throtl_slice is 100ms by default. This is a long time for SSD, a lot
of IO can run. To make cgroups have smoother throughput, we choose a
small value (20ms) for SSD.
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index b315e62cc914..7f090dd15ca6 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -906,6 +906,8 @@ int blk_register_queue(struct gendisk *disk) blk_wb_init(q); + blk_throtl_register_queue(q); + if (q->request_fn || (q->mq_ops && q->elevator)) { ret = elv_register_queue(q); if (ret) { |