Re: [PATCH] sched: mark parent and real_parent as __rcu

From: Ingo Molnar
Date: Thu Dec 15 2011 - 02:10:48 EST



* Kees Cook <keescook@xxxxxxxxxxxx> wrote:

> The parent and real_parent pointers should be considered __rcu, since
> they should be held under either tasklist_lock or rcu_read_lock.
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
> ---
> include/linux/sched.h | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)

Did you get some warning that alerted you to this problem? If
yes then please include it in the changelog, so that people
hitting the message can easily find it.

Same consideration applies the second patch as well.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/