]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
blk-throttle: add configure option for new .low interface
authorShaohua Li <shli@fb.com>
Mon, 27 Mar 2017 17:51:31 +0000 (10:51 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 28 Mar 2017 14:02:20 +0000 (08:02 -0600)
As discussed in LSF, add configure option for the interface and mark it
as experimental, so people can try/test.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/Kconfig

index e9f780f815f5d70e094b5d13778c5752e8c3d504..89cd28f8d05129680aa531dd462fc013966c9654 100644 (file)
@@ -115,6 +115,18 @@ config BLK_DEV_THROTTLING
 
        See Documentation/cgroups/blkio-controller.txt for more information.
 
+config BLK_DEV_THROTTLING_LOW
+       bool "Block throttling .low limit interface support (EXPERIMENTAL)"
+       depends on BLK_DEV_THROTTLING
+       default n
+       ---help---
+       Add .low limit interface for block throttling. The low limit is a best
+       effort limit to prioritize cgroups. Depending on the setting, the limit
+       can be used to protect cgroups in terms of bandwidth/iops and better
+       utilize disk resource.
+
+       Note, this is an experimental interface and could be changed someday.
+
 config BLK_CMDLINE_PARSER
        bool "Block device command line partition parser"
        default n