]> git.baikalelectronics.ru Git - kernel.git/commit
blk-cgroup: increase number of supported policies
authorJens Axboe <axboe@kernel.dk>
Tue, 11 Sep 2018 16:59:53 +0000 (10:59 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Sep 2018 16:59:53 +0000 (10:59 -0600)
commitae547855e7739077fb08bf0589858cc53871570e
tree1bec8d2fd88742a5396eb359a087c59dfa8fa08e
parent79a55ce089c12961791e305c02ffa8c185690c56
blk-cgroup: increase number of supported policies

After merging the iolatency policy, we potentially now have 4 policies
being registered, but only support 3. This causes one of them to fail
loading. Takashi reports that BFQ no longer works for him, because it
fails to load due to policy registration failure.

Bump to 5 policies, and also add a warning for when we have exceeded
the global amount. If we have to touch this again, we should switch
to a dynamic scheme instead.

Reported-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Tested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
include/linux/blkdev.h