]> git.baikalelectronics.ru Git - kernel.git/commit
blk-wbt: allow wbt to be enabled always through sysfs
authorJens Axboe <axboe@fb.com>
Mon, 28 Nov 2016 16:40:34 +0000 (09:40 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 28 Nov 2016 17:27:03 +0000 (10:27 -0700)
commitff1b666dc22715aac8e2ac0a697845f55d2b9cc3
tree18b3dfdeffa55da6509de99f565b789c29599b20
parent5279f34ab1a9fcb53ec02e54ec33e96ec6439a51
blk-wbt: allow wbt to be enabled always through sysfs

Currently there's no way to enable wbt if it's not enabled in the
kernel config by default for a device. Allow a write to the
'wbt_lat_usec' queue sysfs file to enable wbt.

This is useful for both the kernel config case, but also if the
device is CFQ managed and it was turned off by default.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-sysfs.c
block/blk-wbt.c
block/blk-wbt.h