Re: [rfc 2/3] fs, proc: Introduce the Children: line in/proc/<pid>/status

From: Cyrill Gorcunov
Date: Thu Dec 01 2011 - 16:38:42 EST


On Thu, Dec 01, 2011 at 01:29:11PM -0800, Andrew Morton wrote:
>
> That's a potentially very long hold time for tasklist_lock, and
> userspace can invoke this at a high frequency. Not good.
>
> I think this can all be done under rcu_read_lock() with
> list_for_each_entry_rcu().
>

Yeah, good point, thanks Andrew!

Cyrill
--
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/