Re: [PATCH v2] mm: cma: support sysfs

John Hubbard
2021-02-10T07:52:57Z

On 2/9/21 11:26 PM, Greg KH wrote:
...
>> I just am not especially happy about the inability to do natural, efficient
>> things here, such as use a statically allocated set of things with sysfs. And
>> I remain convinced that the above is not "improper"; it's a reasonable
>> step, given the limitations of the current sysfs design. I just wanted to say
>> that out loud, as my proposal sinks to the bottom of the trench here. haha :)
>
> What is "odd" is that you are creating an object in the kernel that you
> _never_ free. That's not normal at all in the kernel, and so, your wish
> to have a kobject that you never free represent this object also is not
> normal :)
>

OK, thanks for taking the time to explain that, much appreciated!

thanks,
--
John Hubbard
NVIDIA