]> git.baikalelectronics.ru Git - kernel.git/commit
block: increase BLKCG_MAX_POLS
authorOleksandr Natalenko <oleksandr@natalenko.name>
Sat, 17 Jul 2021 12:33:28 +0000 (14:33 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Jul 2021 19:07:24 +0000 (13:07 -0600)
commitd7fc7b4f51c5489d8af927e47ac6df22d69f688f
tree0314c2c6a6ee24351ca833b692852484ebf500d8
parent1d52cf899e7fae9e5cc72a35bc70b251b75fbb7a
block: increase BLKCG_MAX_POLS

After mq-deadline learned to deal with cgroups, the BLKCG_MAX_POLS value
became too small for all the elevators to be registered properly. The
following issue is seen:

```
calling  bfq_init+0x0/0x8b @ 1
blkcg_policy_register: BLKCG_MAX_POLS too small
initcall bfq_init+0x0/0x8b returned -28 after 507 usecs
```

which renders BFQ non-functional.

Increase BLKCG_MAX_POLS to allow enough space for everyone.

Fixes: 68d713c6ed42 ("block/mq-deadline: Add cgroup support")
Link: https://lore.kernel.org/lkml/8988303.mDXGIdCtx8@natalenko.name/
Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Link: https://lore.kernel.org/r/20210717123328.945810-1-oleksandr@natalenko.name
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h