Re: [RFC PATCH 2/3] mm/slub: unify all sl[au]b parameters with "slab_$param"

From: Vlastimil Babka
Date: Wed Dec 06 2023 - 09:59:40 EST


On 12/2/23 22:30, Kees Cook wrote:
> On Sat, Dec 02, 2023 at 07:12:25PM +0100, Vlastimil Babka wrote:
>> On 12/2/23 05:23, Song, Xiongwei wrote:
>> >
>> >
>>
>> Yes, they are already recognized by the patch.
>
> Ah, sorry, I missed that. I didn't see it when I skimmed earlier.
>
>> >> with a boot pr_warn() about their deprecation/renaming for several
>> >> releases (likely across LTSes). I think it's not a good idea to
>> >> wholesale rename these with no warning. That's going to cause a lot of
>> >> surprises and broken userspace...
>> >
>> > Oh, yes, that's a good idea. Will update.
>>
>> I'd wait for a while with the warnings, no need to rush.
>
> Better to start ASAP, yeah?

I find it a bit obnoxious to accept the slub_* names in one kernel release
and immediately warn in the next one. I'd let the people who read the
news/docs adjust on their own first :) After all, we wouldn't be warning
about something that's dangerous if not acted upon immediately, or something.