Paul E. McKenney
b3fbab0571
rcu: Restore checks for blocking in RCU read-side critical sections
...
Long ago, using TREE_RCU with PREEMPT would result in "scheduling
while atomic" diagnostics if you blocked in an RCU read-side critical
section. However, PREEMPT now implies TREE_PREEMPT_RCU, which defeats
this diagnostic. This commit therefore adds a replacement diagnostic
based on PROVE_RCU.
Because rcu_lockdep_assert() and lockdep_rcu_dereference() are now being
used for things that have nothing to do with rcu_dereference(), rename
lockdep_rcu_dereference() to lockdep_rcu_suspicious() and add a third
argument that is a string indicating what is suspicious. This third
argument is passed in from a new third argument to rcu_lockdep_assert().
Update all calls to rcu_lockdep_assert() to add an informative third
argument.
Also, add a pair of rcu_lockdep_assert() calls from within
rcu_note_context_switch(), one complaining if a context switch occurs
in an RCU-bh read-side critical section and another complaining if a
context switch occurs in an RCU-sched read-side critical section.
These are present only if the PROVE_RCU kernel parameter is enabled.
Finally, fix some checkpatch whitespace complaints in lockdep.c.
Again, you must enable PROVE_RCU to see these new diagnostics. But you
are enabling PROVE_RCU to check out new RCU uses in any case, aren't you?
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com >
2011-09-28 21:36:37 -07:00
..
2011-07-27 20:43:21 +05:30
2011-07-22 09:51:12 -04:00
2011-07-26 13:38:50 -07:00
2011-07-27 17:52:58 -03:00
2011-07-17 21:48:22 +02:00
2011-07-06 21:23:54 -07:00
2011-09-06 16:37:58 +02:00
2011-07-26 16:49:47 -07:00
2011-08-13 14:50:32 -04:00
2011-07-22 13:09:55 -07:00
2011-07-21 12:39:35 -07:00
2011-07-15 18:58:42 -04:00
2011-07-30 08:57:57 -10:00
2011-07-08 17:01:58 +04:00
2011-07-28 11:31:47 +10:00
2011-09-08 14:43:03 -07:00
2011-07-15 13:54:17 -06:00
2011-07-25 13:56:39 -07:00
2011-07-27 13:23:02 -07:00
2011-07-14 14:45:59 -07:00
2011-07-08 15:30:55 -07:00
2011-08-03 21:53:27 -10:00
2011-07-22 08:25:37 -07:00
2011-07-26 16:49:47 -07:00
2011-07-20 20:47:43 -04:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-09-14 18:09:38 -07:00
2011-07-20 01:43:10 -04:00
2011-07-26 16:49:47 -07:00
2011-08-03 11:30:42 -04:00
2011-08-23 14:50:29 +02:00
2011-08-24 16:04:34 +02:00
2011-08-11 10:36:05 +02:00
2011-07-31 22:05:09 +02:00
2011-07-26 16:49:47 -07:00
2011-07-08 22:21:58 +02:00
2011-07-22 17:05:15 -07:00
2011-07-18 21:38:33 +02:00
2011-08-26 15:09:58 -07:00
2011-07-26 16:49:47 -07:00
2011-08-25 16:25:33 -07:00
2011-07-25 20:57:14 -07:00
2011-08-03 19:06:37 -04:00
2011-07-26 16:49:44 -07:00
2011-08-08 11:33:23 -07:00
2011-07-26 16:49:47 -07:00
2011-08-06 22:12:37 -07:00
2011-07-06 14:44:42 -07:00
2011-07-25 20:57:16 -07:00
2011-08-06 22:52:40 -07:00
2011-07-05 23:42:17 -07:00
2011-07-26 16:49:47 -07:00
2011-08-02 12:32:04 +01:00
2011-07-26 16:49:47 -07:00
2011-08-02 12:32:06 +01:00
2011-08-02 12:32:04 +01:00
2011-07-26 16:49:45 -07:00
2011-07-26 16:49:47 -07:00
2011-07-25 20:57:16 -07:00
2011-08-01 13:40:51 -10:00
2011-07-13 02:29:59 -07:00
2011-07-26 11:34:40 -07:00
2011-08-03 14:25:20 -10:00
2011-07-20 20:47:59 -04:00
2011-07-07 08:18:18 +02:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-16 07:24:32 +02:00
2011-07-26 16:49:47 -07:00
2011-09-21 13:20:21 -07:00
2011-07-07 13:21:56 -07:00
2011-07-08 00:21:27 -05:00
2011-07-26 16:49:47 -07:00
2011-07-14 16:36:53 -04:00
2011-07-11 10:12:59 -04:00
2011-08-08 16:08:08 +02:00
2011-08-03 11:15:57 -04:00
2011-07-25 14:30:23 -04:00
2011-08-03 14:25:21 -10:00
2011-08-17 13:00:20 -07:00
2011-07-25 20:57:07 -07:00
2011-07-10 05:27:15 -06:00
2011-08-03 14:25:20 -10:00
2011-07-19 16:49:54 -04:00
2011-07-17 12:33:22 -07:00
2011-07-06 01:56:38 -07:00
2011-07-21 13:47:58 -07:00
2011-07-27 22:39:30 -07:00
2011-07-21 13:47:54 -07:00
2011-07-12 08:35:10 +02:00
2011-08-05 14:45:41 -04:00
2011-07-26 16:49:47 -07:00
2011-07-12 14:24:35 +02:00
2011-07-31 14:30:59 -10:00
2011-07-26 16:49:44 -07:00
2011-08-17 10:23:50 -07:00
2011-07-28 11:23:21 +02:00
2011-07-28 01:32:04 -06:00
2011-07-10 22:05:08 -04:00
2011-07-25 17:24:47 +02:00
2011-07-26 16:49:47 -07:00
2011-07-08 00:21:27 -05:00
2011-07-29 21:53:30 +02:00
2011-07-26 16:49:47 -07:00
2011-07-27 13:21:40 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-24 11:50:34 +03:00
2011-09-20 17:07:34 +02:00
2011-07-25 20:57:15 -07:00
2011-07-22 14:39:48 +09:30
2011-07-23 17:57:36 -04:00
2011-08-03 11:15:56 -04:00
2011-09-28 21:36:37 -07:00
2011-07-31 22:08:04 +02:00
2011-09-14 18:09:38 -07:00
2011-07-25 20:57:08 -07:00
2011-07-12 11:08:01 +10:00
2011-07-31 22:08:04 +02:00
2011-07-18 15:17:01 +03:00
2011-08-17 13:00:20 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-20 20:47:50 -04:00
2011-07-24 22:06:04 +09:30
2011-07-24 22:06:04 +09:30
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-09-27 08:12:33 -07:00
2011-07-28 05:58:19 -07:00
2011-08-07 22:48:07 -07:00
2011-07-05 15:26:58 -04:00
2011-07-31 12:18:15 -04:00
2011-07-31 14:27:04 -10:00
2011-08-01 13:48:31 -10:00
2011-07-15 09:12:22 -04:00
2011-08-06 22:56:03 -07:00
2011-07-31 12:18:16 -04:00
2011-07-25 13:56:39 -07:00
2011-07-26 16:49:43 -07:00
2011-07-25 20:57:15 -07:00
2011-07-20 01:44:07 -04:00
2011-07-18 16:37:45 -06:00
2011-08-04 11:26:24 +01:00
2011-07-28 16:19:22 -06:00
2011-07-28 01:32:04 -06:00
2011-07-27 09:30:56 +08:00
2011-08-09 11:27:16 -06:00
2011-07-25 20:57:09 -07:00
2011-07-15 23:58:18 +02:00
2011-07-26 16:49:47 -07:00
2011-07-30 08:21:48 -10:00
2011-07-25 20:57:10 -07:00
2011-08-04 16:43:43 -10:00
2011-08-01 11:50:15 -07:00
2011-08-29 12:28:33 +02:00
2011-08-25 10:17:28 -07:00
2011-07-27 09:31:02 +08:00
2011-07-08 00:21:35 -05:00
2011-07-08 14:02:53 +02:00
2011-08-14 13:34:31 +02:00
2011-07-12 11:17:09 +02:00
2011-07-12 13:40:29 -04:00
2011-07-25 20:57:09 -07:00
2011-08-03 00:58:42 -04:00
2011-07-27 12:50:45 -07:00
2011-07-22 16:14:29 -07:00
2011-07-17 20:23:52 +02:00
2011-08-25 16:25:34 -07:00
2011-07-26 16:49:47 -07:00
2011-08-03 14:25:24 -10:00
2011-07-26 16:49:46 -07:00
2011-08-06 18:33:19 -07:00
2011-07-20 14:10:20 -07:00
2011-09-28 21:36:37 -07:00
2011-07-25 20:57:14 -07:00
2011-07-23 07:56:59 +01:00
2011-07-25 14:30:23 -04:00
2011-07-25 20:57:17 -07:00
2011-07-25 14:30:23 -04:00
2011-08-25 16:25:34 -07:00
2011-07-26 14:50:01 -07:00
2011-07-08 14:02:53 +02:00
2011-07-25 13:56:39 -07:00
2011-07-26 16:49:47 -07:00
2011-08-11 11:24:42 -07:00
2011-07-18 11:06:03 -07:00
2011-07-20 01:43:29 -04:00
2011-07-26 16:49:47 -07:00
2011-07-20 20:47:50 -04:00
2011-07-11 15:07:25 +09:00
2011-07-30 08:44:19 -10:00
2011-08-03 14:25:24 -10:00
2011-07-20 20:47:10 -04:00
2011-09-15 14:49:44 -04:00
2011-07-20 20:27:56 +03:00
2011-07-07 21:04:12 +03:00
2011-07-30 08:21:48 -10:00
2011-09-15 14:49:43 -04:00
2011-08-07 22:48:07 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-25 20:57:11 -07:00
2011-07-21 15:29:16 -07:00
2011-07-25 13:56:39 -07:00
2011-07-25 20:57:15 -07:00
2011-09-14 18:09:38 -07:00
2011-08-03 14:25:22 -10:00
2011-08-26 15:09:58 -07:00
2011-07-26 16:49:47 -07:00
2011-08-02 14:51:57 -04:00
2011-08-22 14:13:32 -07:00
2011-08-23 10:10:38 -07:00
2011-08-23 10:10:38 -07:00
2011-07-27 17:55:40 -03:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:45 -07:00
2011-07-25 20:57:15 -07:00
2011-07-28 08:01:18 +00:00
2011-07-04 19:31:38 -07:00
2011-07-26 16:49:47 -07:00
2011-08-19 22:42:07 +08:00