]> git.baikalelectronics.ru Git - kernel.git/commit
block: Make writeback throttling defaults consistent for SQ devices
authorJan Kara <jack@suse.cz>
Wed, 19 Apr 2017 09:33:27 +0000 (11:33 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 19 Apr 2017 14:49:03 +0000 (08:49 -0600)
commitf2a3ad27493ef785ff3ae63a956a7d34fba916c3
tree644af58ba64f8cb431d01abaff81113b4ed6a835
parent2dd70d1eff26049503cf157dfefd5233cebe9957
block: Make writeback throttling defaults consistent for SQ devices

When CFQ is used as an elevator, it disables writeback throttling
because they don't play well together. Later when a different elevator
is chosen for the device, writeback throttling doesn't get enabled
again as it should. Make sure CFQ enables writeback throttling (if it
should be enabled by default) when we switch from it to another IO
scheduler.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-sysfs.c
block/blk-wbt.c
block/blk-wbt.h
block/elevator.c