lkml.org 
[lkml]   [2011]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: fix rcu annotations noise in cred.h
Date
Al Viro <viro@ZenIV.linux.org.uk> wrote:

> task->cred is declared as __rcu, and access to other tasks' ->cred is,
> indeed, protected. Access to current->cred does not need rcu_dereference()
> at all, since only the task itself can change its ->cred. sparse, of
> course, has no way of knowing that...

What was the Sparse warning, btw? You didn't say. I don't see any warnings,
but it's possible I have a too-old version of Sparse or the wrong config
options? (Or maybe I just don't know what to look for)

David


\
 
 \ /
  Last update: 2011-08-08 14:31    [W:0.052 / U:1.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site