Files
ack-tegra/include/linux
Paul E. McKenney 53ecfba259 rcu: only one evaluation of arg in rcu_dereference_check() unless sparse
The current version of the __rcu_access_pointer(), __rcu_dereference_check(),
and __rcu_dereference_protected() macros evaluate their "p" argument
three times, not counting typeof()s.  This is bad news if that argument
contains a side effect.  This commit therefore evaluates this argument
only once in normal kernel builds.  However, the straightforward approach
defeats sparse's RCU-pointer checking, so when __CHECKER__ is defined,
the additional pair of evaluations of the "p" argument are performed in
order to permit sparse to detect misuse of RCU-protected pointers.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
2010-09-23 09:15:01 -07:00
..
2010-08-05 13:26:20 +01:00
2010-08-12 06:38:24 +10:00
2010-08-19 17:18:00 -07:00
2010-08-12 08:43:30 -07:00
2010-08-12 08:43:30 -07:00
2010-08-12 08:43:30 -07:00
2010-08-18 01:09:01 -04:00
2010-08-19 17:18:00 -07:00
2010-08-06 15:36:47 -05:00
2010-08-19 17:18:00 -07:00
2010-08-04 11:00:45 +02:00
2010-08-12 04:14:05 +01:00
2010-08-19 17:18:03 -07:00
2010-08-18 08:35:46 -04:00
2010-08-19 17:18:03 -07:00
2010-08-19 17:18:03 -07:00
2010-08-20 08:55:00 -07:00
2010-08-11 09:23:22 +02:00
2010-08-11 18:21:02 +02:00
2010-08-19 17:18:03 -07:00
2010-08-20 08:55:00 -07:00
2010-08-19 17:18:01 -07:00
2010-08-19 17:18:03 -07:00
2010-08-09 20:45:05 -07:00
2010-08-10 11:49:21 -07:00
2010-08-12 11:27:58 +02:00
2010-08-19 17:18:00 -07:00
2010-08-09 20:44:58 -07:00
2010-08-19 17:18:01 -07:00
2010-08-02 06:39:44 +03:00
2010-08-09 16:48:45 -04:00
2010-08-12 04:14:05 +01:00
2010-08-09 20:45:00 -07:00
2010-08-11 00:29:47 -04:00
2010-08-19 17:18:00 -07:00
2010-08-19 17:18:02 -07:00
2010-08-04 21:53:17 -07:00
2010-08-19 17:18:03 -07:00
2010-08-09 16:47:27 -04:00
2010-08-20 08:55:00 -07:00
2010-08-10 13:47:46 -07:00
2010-08-09 16:48:44 -04:00
2010-08-18 08:35:47 -04:00
2010-08-06 10:37:02 -04:00
2010-08-12 11:47:26 +10:00
2010-08-11 08:59:02 -07:00