Re: fix rcu annotations noise in cred.h

David Howells
2011-08-08T12:29:01Z

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