History

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.

Jens Axboe committed 8 years ago

Commit 01c5f851 parent bf935852 files · +4 −2Browse files

Showing the changes to include/linux/blkdev.h (1 of 2 files). Show all

Unified · Split

include/linux/blkdev.h+1−1
@@ -54,7 +54,7 @@ struct blk_stat_callback; · 53 unmodified lines
5454 * Maximum number of blkcg policies allowed to be registered concurrently.
5555 * Defined here to simplify include dependency.
5656 */
57−#define BLKCG_MAX_POLS 3
57+#define BLKCG_MAX_POLS 5
5858
5959 typedef void (rq_end_io_fn)(struct request *, blk_status_t);
6060