blk-throttle: add interface to configure idle time threshold
authorShaohua Li <shli@fb.com>
Mon, 27 Mar 2017 17:51:42 +0000 (10:51 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 28 Mar 2017 14:02:20 +0000 (08:02 -0600)
commitada75b6e5b2a939401d4919dfaf2f2fc9484f68a
tree9f07b5a5edb225e495dc6ec46b5a7e7b96182fcc
parent9e234eeafbe17e85908584392f249f0b329b8e1b
blk-throttle: add interface to configure idle time threshold

Add interface to configure the threshold. The io.low interface will
like:
echo "8:16 rbps=2097152 wbps=max idle=2000" > io.low

idle is in microsecond unit.

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