Re: [PATCH 2/2] taskstats: add_del_listener() should ignore !valid listener's

Balbir Singh
2011-07-21T15:49:58Z

On Thu, Jul 21, 2011 at 12:30 AM, Oleg Nesterov <oleg@redhat.com> wrote:
> When send_cpu_listeners() finds the orphaned listener it marks
> it as !valid and drops listeners->sem. Before it takes this sem
> for wrinting, s->pid can be reused and add_del_listener() can
> wrongly try to re-use this entry.
>
> Change add_del_listener() to check ->valid = T.
>
> Signed-off-by: Oleg Nesterov <oleg@redhat.com>

Acked-by: Balbir Singh <bsingharora@gmail.com>

BTW, some namespace changes are pending from my side. I need to get
it, its on my TODO list

Balbir Singh