lkml.org 
[lkml]   [2011]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rfc 2/3] fs, proc: Introduce the Children: line in /proc/<pid>/status
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


\
 
 \ /
  Last update: 2011-12-01 22:41    [W:0.094 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site