[lkml]   [2012]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch 1/2] kernel: cgroup: push rcu read locking from css_is_ancestor() to callsite
Johannes Weiner wrote:
> Library functions should not grab locks when the callsites can do it,
> even if the lock nests like the rcu read-side lock does.
> Push the rcu_read_lock() from css_is_ancestor() to its single user,
> mem_cgroup_same_or_subtree() in preparation for another user that may
> already hold the rcu read-side lock.
> Signed-off-by: Johannes Weiner <>

Acked-by: Li Zefan <>

 \ /
  Last update: 2012-03-01 02:37    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean