Files
kernel_xiaomi_sm8250/include/linux
Linus Torvalds cc216c5d42 Fix RCU list iterator use of 'rcu_dereference()'
The RCU iterators used 'rcu_dereference()' on an already-fetched RCU
pointer value, which defeats the whole point of the exercise.

When we dereference a pointer protected by RCU, we need to make sure
that we only fetch the value _once_, because if the compiler ends up
re-loading it due to register pressure, the newly reloaded value could
be different from the previously fetched one, and you get inconsistent
results.

Cleaned-up, fixed, and the pointless list_for_each_safe_rcu #define
deleted by Paul Kenney.

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-21 08:23:35 -07:00
..
2008-04-19 09:59:43 +10:00
2008-04-17 20:05:38 +02:00
2008-04-04 18:36:49 +02:00
2008-04-17 12:22:31 +02:00
2008-03-17 22:48:46 -07:00
2008-03-19 18:53:36 -07:00
2008-04-17 20:05:42 +02:00
2008-04-17 15:44:25 -04:00
2008-03-12 12:34:37 -07:00
2008-03-17 22:46:46 -07:00
2008-04-17 10:42:14 -04:00
2008-04-17 10:43:01 -04:00
2008-04-17 20:05:37 +02:00
2008-04-17 20:05:36 +02:00
2008-04-07 13:14:22 -07:00