Re: [PATCH RFC] ftrace: Clear hashes of saved init functions

From: Joel Fernandes
Date: Mon Oct 09 2017 - 11:33:59 EST


Hi Steve,

On Mon, Oct 9, 2017 at 8:09 AM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> On Sun, 8 Oct 2017 14:33:04 -0700
> Joel Fernandes <joelaf@xxxxxxxxxx> wrote:
>
>>
>> static void
>> clear_mod_from_hash(struct ftrace_page *pg, struct ftrace_hash *hash)
>> {
>> @@ -5771,12 +5807,24 @@ void ftrace_release_mod(struct module *mod)
>
> This is too late. This should be done by ftrace_free_mem().
>

Ok, I agree with you. Initially I started to do it this way but the
locking made it more complicated. I'll work on a patch that does it at
free_mem time and send it out today.

thanks,

- Joel