diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-09-11 18:59:53 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-09-11 18:59:53 +0200 |
commit | 01c5f85aebaaddfd7e6051fb2ec80c1d4b463554 (patch) | |
tree | 1bec8d2fd88742a5396eb359a087c59dfa8fa08e /include | |
parent | Merge branch 'nvme-4.19' of git://git.infradead.org/nvme into for-linus (diff) | |
download | linux-01c5f85aebaaddfd7e6051fb2ec80c1d4b463554.tar.xz linux-01c5f85aebaaddfd7e6051fb2ec80c1d4b463554.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index d6869e0e2b64..6980014357d4 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -54,7 +54,7 @@ struct blk_stat_callback; * Maximum number of blkcg policies allowed to be registered concurrently. * Defined here to simplify include dependency. */ -#define BLKCG_MAX_POLS 3 +#define BLKCG_MAX_POLS 5 typedef void (rq_end_io_fn)(struct request *, blk_status_t); |