Peter Zijlstra
1b12bbc747
lockdep: re-annotate scheduler runqueues
...
Instead of using a per-rq lock class, use the regular nesting operations.
However, take extra care with double_lock_balance() as it can release the
already held rq->lock (and therefore change its nesting class).
So what can happen is:
spin_lock(rq->lock); // this rq subclass 0
double_lock_balance(rq, other_rq);
// release rq
// acquire other_rq->lock subclass 0
// acquire rq->lock subclass 1
spin_unlock(other_rq->lock);
leaving you with rq->lock in subclass 1
So a subsequent double_lock_balance() call can try to nest a subclass 1
lock while already holding a subclass 1 lock.
Fix this by introducing double_unlock_balance() which releases the other
rq's lock, but also re-sets the subclass for this rq's lock to 0.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl >
Signed-off-by: Ingo Molnar <mingo@elte.hu >
2008-08-11 09:30:22 +02:00
..
2008-07-26 12:00:07 -07:00
2008-07-26 12:00:04 -07:00
2008-07-26 16:40:33 +02:00
2008-07-28 23:32:00 +02:00
2008-07-25 10:53:47 -07:00
2008-05-17 03:30:23 -04:00
2008-06-24 23:36:35 -04:00
2008-04-28 06:28:04 -04:00
2008-06-24 23:36:35 -04:00
2008-07-23 17:47:32 -07:00
2008-06-27 18:09:16 +02:00
2008-04-29 08:06:29 -07:00
2008-07-24 10:47:22 -07:00
2008-04-29 08:06:09 -07:00
2008-07-26 20:53:42 -04:00
2008-05-01 08:03:59 -07:00
2008-04-29 08:06:22 -07:00
2008-07-28 23:32:00 +02:00
2008-07-25 10:53:38 -07:00
2008-07-25 10:53:47 -07:00
2008-07-20 21:22:00 +02:00
2008-04-29 08:06:22 -07:00
2008-07-26 20:53:20 -04:00
2008-07-27 09:58:20 -07:00
2008-07-28 16:30:21 -07:00
2008-03-30 14:18:41 -07:00
2008-06-23 13:31:15 +02:00
2008-07-15 21:55:59 +02:00
2008-07-25 10:53:27 -07:00
2008-07-23 11:18:28 +02:00
2008-07-26 12:00:04 -07:00
2008-06-24 10:52:55 -05:00
2008-07-25 10:53:28 -07:00
2008-07-25 10:53:30 -07:00
2008-07-26 12:00:09 -07:00
2008-04-29 08:06:22 -07:00
2008-07-31 18:38:28 +02:00
2008-07-31 18:38:28 +02:00
2008-08-11 09:30:21 +02:00
2008-07-29 00:07:55 +02:00
2008-07-25 10:53:45 -07:00
2008-07-28 12:16:31 +10:00
2008-05-16 16:53:35 +02:00
2008-06-10 11:45:09 +02:00
2008-04-29 08:06:13 -07:00
2008-07-25 10:53:37 -07:00
2008-07-25 10:53:37 -07:00
2008-07-25 10:53:29 -07:00
2008-07-25 10:53:47 -07:00
2008-07-25 10:53:45 -07:00
2008-07-02 15:06:24 -06:00
2008-05-24 18:49:22 +02:00
2008-07-25 10:53:38 -07:00
2008-07-25 10:53:29 -07:00
2008-07-25 10:53:27 -07:00
2008-07-26 12:00:09 -07:00
2008-07-28 12:16:31 +10:00
2008-07-15 14:12:03 -07:00
2008-05-19 10:03:39 +02:00
2008-07-16 00:29:07 +02:00
2008-06-26 09:24:33 +02:00
2008-07-26 12:00:04 -07:00
2008-07-25 10:53:36 -07:00
2008-04-29 08:06:22 -07:00
2008-07-21 21:55:02 -07:00
2008-07-14 12:19:13 +02:00
2008-06-06 15:19:28 +02:00
2008-06-06 15:19:44 +02:00
2008-06-27 14:31:31 +02:00
2008-07-23 19:36:53 -07:00
2008-06-27 14:31:47 +02:00
2008-05-05 23:56:17 +02:00
2008-08-11 09:30:22 +02:00
2008-07-04 12:50:23 +02:00
2008-08-11 09:30:22 +02:00
2008-07-01 10:14:06 +02:00
2008-07-26 12:00:09 -07:00
2008-07-26 12:00:04 -07:00
2008-07-26 12:00:04 -07:00
2008-07-26 12:00:04 -07:00
2008-05-23 20:39:40 +02:00
2008-06-30 09:20:55 +02:00
2008-07-28 12:16:30 +10:00
2008-07-25 11:35:41 -07:00
2008-07-26 12:00:04 -07:00
2008-07-25 10:53:45 -07:00
2008-07-27 09:45:34 -07:00
2008-07-25 10:53:47 -07:00
2008-05-02 16:18:42 -07:00
2008-05-02 16:18:42 -07:00
2008-07-14 16:06:58 -07:00
2008-07-27 16:12:28 -07:00
2008-04-10 17:28:26 -07:00
2008-04-29 08:06:07 -07:00
2008-04-30 08:29:53 -07:00
2008-04-29 08:06:04 -07:00
2008-07-25 10:53:41 -07:00