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

From: Balbir Singh
Date: Thu Jul 21 2011 - 11:50:04 EST

On Thu, Jul 21, 2011 at 12:30 AM, Oleg Nesterov <oleg@xxxxxxxxxx> 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@xxxxxxxxxx>

Acked-by: Balbir Singh <bsingharora@xxxxxxxxx>

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

Balbir Singh
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at