X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Documentation%2FRCU%2Flockdep.txt;h=4998c633e20a7a836355573e8f85b254b330aeb0;hb=e5177ec77d503636d0b609671c9d408b981add17;hp=d7a49b2f6994c68ced38075000ccbc07803ba413;hpb=e37c83c06c2690157a989df40dc99a6b61c9ea15;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/Documentation/RCU/lockdep.txt b/Documentation/RCU/lockdep.txt index d7a49b2..4998c63 100644 --- a/Documentation/RCU/lockdep.txt +++ b/Documentation/RCU/lockdep.txt @@ -48,13 +48,11 @@ checking of rcu_dereference() primitives: value of the pointer itself, for example, against NULL. The rcu_dereference_check() check expression can be any boolean -expression, but would normally include one of the rcu_read_lock_held() -family of functions and a lockdep expression. However, any boolean -expression can be used. For a moderately ornate example, consider -the following: +expression, but would normally include a lockdep expression. However, +any boolean expression can be used. For a moderately ornate example, +consider the following: file = rcu_dereference_check(fdt->fd[fd], - rcu_read_lock_held() || lockdep_is_held(&files->file_lock) || atomic_read(&files->count) == 1); @@ -62,7 +60,7 @@ This expression picks up the pointer "fdt->fd[fd]" in an RCU-safe manner, and, if CONFIG_PROVE_RCU is configured, verifies that this expression is used in: -1. An RCU read-side critical section, or +1. An RCU read-side critical section (implicit), or 2. with files->file_lock held, or 3. on an unshared files_struct.