2023-02-03 07:50:20

by Yu Kuai

[permalink] [raw]
Subject: [PATCH -next] block: Revert "block: increase BLKCG_MAX_POLS"

From: Yu Kuai <[email protected]>

This reverts commit ec645dc96699ea6c37b6de86c84d7288ea9a4ddf.

This can save some memory, because after commit 0f7839955114 ("Revert
"block/mq-deadline: Add cgroup support""), there are total 5 policies.

Signed-off-by: Yu Kuai <[email protected]>
---
include/linux/blkdev.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 41a41561b773..c6861c7fdad9 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -54,7 +54,7 @@ extern struct class block_class;
* Maximum number of blkcg policies allowed to be registered concurrently.
* Defined here to simplify include dependency.
*/
-#define BLKCG_MAX_POLS 6
+#define BLKCG_MAX_POLS 5

#define DISK_MAX_PARTS 256
#define DISK_NAME_LEN 32
--
2.31.1



2023-02-03 08:00:24

by Oleksandr Natalenko

[permalink] [raw]
Subject: Re: [PATCH -next] block: Revert "block: increase BLKCG_MAX_POLS"

Hello.

On p?tek 3. ?nora 2023 9:13:57 CET Yu Kuai wrote:
> From: Yu Kuai <[email protected]>
>
> This reverts commit ec645dc96699ea6c37b6de86c84d7288ea9a4ddf.
>
> This can save some memory, because after commit 0f7839955114 ("Revert
> "block/mq-deadline: Add cgroup support""), there are total 5 policies.
>
> Signed-off-by: Yu Kuai <[email protected]>
> ---
> include/linux/blkdev.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
> index 41a41561b773..c6861c7fdad9 100644
> --- a/include/linux/blkdev.h
> +++ b/include/linux/blkdev.h
> @@ -54,7 +54,7 @@ extern struct class block_class;
> * Maximum number of blkcg policies allowed to be registered concurrently.
> * Defined here to simplify include dependency.
> */
> -#define BLKCG_MAX_POLS 6
> +#define BLKCG_MAX_POLS 5
>
> #define DISK_MAX_PARTS 256
> #define DISK_NAME_LEN 32

Last time I asked about reverting this change, it was suggested that we may keep it [1].

[1] https://lore.kernel.org/linux-block/[email protected]/

--
Oleksandr Natalenko (post-factum)



2023-02-03 08:14:28

by Yu Kuai

[permalink] [raw]
Subject: Re: [PATCH -next] block: Revert "block: increase BLKCG_MAX_POLS"

Hi,

?? 2023/02/03 15:59, Oleksandr Natalenko ะด??:
> Hello.
>
> On p??tek 3. ??nora 2023 9:13:57 CET Yu Kuai wrote:
>> From: Yu Kuai <[email protected]>
>>
>> This reverts commit ec645dc96699ea6c37b6de86c84d7288ea9a4ddf.
>>
>> This can save some memory, because after commit 0f7839955114 ("Revert
>> "block/mq-deadline: Add cgroup support""), there are total 5 policies.
>>
>> Signed-off-by: Yu Kuai <[email protected]>
>> ---
>> include/linux/blkdev.h | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
>> index 41a41561b773..c6861c7fdad9 100644
>> --- a/include/linux/blkdev.h
>> +++ b/include/linux/blkdev.h
>> @@ -54,7 +54,7 @@ extern struct class block_class;
>> * Maximum number of blkcg policies allowed to be registered concurrently.
>> * Defined here to simplify include dependency.
>> */
>> -#define BLKCG_MAX_POLS 6
>> +#define BLKCG_MAX_POLS 5
>>
>> #define DISK_MAX_PARTS 256
>> #define DISK_NAME_LEN 32
>
> Last time I asked about reverting this change, it was suggested that we may keep it [1].
>
> [1] https://lore.kernel.org/linux-block/[email protected]/
>

I see now, thanks for the reply.

Kuai