Daniel Vetter
6b898c07cb
console: use might_sleep in console_lock
...
Instead of BUG_ON(in_interrupt()), since that doesn't check for all
the newfangled stuff like preempt.
Note that this is valid since the console_sem is essentially used like
a real mutex with only two twists:
- we allow trylock from hardirq context
- across suspend/resume we lock the logical console_lock, but drop the
semaphore protecting the locking state.
Now that doesn't guarantee that no one is playing tricks in
single-thread atomic contexts at suspend/resume/boot time, but
- I couldn't find anything suspicious with some grepping,
- might_sleep shouldn't die,
- and I think the upside of catching more potential issues is worth
the risk of getting a might_sleep backtrace that would have been
save (and then dealing with that fallout).
Cc: Dave Airlie <airlied@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-23 20:14:55 -07:00
..
2012-10-13 11:16:58 +09:00
2012-10-13 10:20:11 +09:00
2011-07-26 16:49:45 -07:00
2012-10-10 08:57:26 +02:00
2012-09-17 20:25:51 +02:00
2012-10-12 22:13:05 +09:00
2012-10-12 22:17:48 +09:00
2012-10-07 21:04:56 +09:00
2012-10-12 20:15:09 -04:00
2012-07-20 09:07:37 +01:00
2012-08-15 12:55:22 +02:00
2012-10-12 00:32:02 -04:00
2012-10-09 23:33:37 -04:00
2012-10-12 00:32:02 -04:00
2012-10-12 00:32:02 -04:00
2012-10-12 20:15:09 -04:00
2012-05-15 14:59:24 -07:00
2012-09-14 12:01:16 -07:00
2012-10-02 10:52:28 -07:00
2012-05-21 23:52:30 -04:00
2011-07-25 20:57:15 -07:00
2012-05-31 17:49:27 -07:00
2012-10-09 16:22:15 +09:00
2012-07-24 13:53:28 +02:00
2011-11-06 19:44:47 -08:00
2012-08-23 22:54:18 -07:00
2011-07-14 12:59:14 +03:00
2012-03-28 18:30:03 +01:00
2012-10-02 20:25:04 -07:00
2012-04-19 15:06:55 -07:00
2012-10-10 12:02:25 +09:00
2012-03-04 23:08:54 +01:00
2012-03-29 11:37:17 +02:00
2012-07-24 16:02:57 +02:00
2012-05-03 03:29:33 -07:00
2012-07-11 23:34:39 +02:00
2012-04-25 12:39:25 +02:00
2012-04-13 13:15:16 -04:00
2012-04-10 11:00:30 +02:00
2012-08-06 19:00:35 +03:00
2012-05-29 16:22:32 -07:00
2012-05-31 17:49:32 -07:00
2012-09-13 17:56:13 +02:00
2012-03-23 13:18:57 +01:00
2012-10-06 03:05:19 +09:00
2012-04-11 18:24:37 -03:00
2012-10-12 13:35:07 -04:00
2012-09-13 22:52:11 -04:00
2011-10-31 09:20:13 -04:00
2012-10-13 10:05:52 +09:00
2011-10-31 09:20:12 -04:00
2012-05-29 23:28:41 -04:00
2011-10-31 09:20:12 -04:00
2012-09-13 17:00:44 +02:00
2012-10-14 13:39:34 -07:00
2012-10-10 20:01:22 +10:30
2012-10-19 17:30:40 -07:00
2012-10-19 17:30:40 -07:00
2012-10-19 17:30:40 -07:00
2011-10-31 09:20:12 -04:00
2011-04-14 08:52:33 +02:00
2012-03-01 10:28:03 +01:00
2011-04-14 08:52:33 +02:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2012-03-29 19:52:46 +08:00
2012-07-30 17:25:13 -07:00
2012-05-04 17:28:18 -07:00
2012-10-19 14:07:47 -07:00
2012-08-14 21:49:25 -07:00
2011-12-15 14:56:19 +01:00
2011-10-31 09:20:12 -04:00
2012-10-23 20:14:55 -07:00
2011-10-31 09:20:12 -04:00
2012-08-03 14:47:17 +10:00
2011-10-31 09:20:11 -04:00
2012-02-21 09:06:12 -08:00
2012-09-23 07:42:49 -07:00
2012-09-23 07:42:51 -07:00
2012-09-23 07:42:52 -07:00
2012-09-23 07:42:23 -07:00
2012-09-26 15:44:02 +02:00
2012-09-25 10:01:45 -07:00
2012-10-08 09:06:38 -07:00
2012-10-08 09:06:38 -07:00
2012-06-13 21:16:42 +02:00
2012-05-29 16:22:27 -07:00
2012-10-06 03:05:31 +09:00
2011-12-06 08:16:49 +01:00
2011-12-14 14:54:22 -08:00
2011-12-11 10:33:18 -08:00
2012-03-28 18:30:03 +01:00
2012-04-18 12:24:52 +10:00
2012-04-05 17:15:55 -07:00
2012-10-06 03:05:16 +09:00
2012-06-05 17:27:14 +02:00
2012-08-13 17:01:07 +02:00
2012-08-13 17:01:07 +02:00
2012-10-01 10:43:39 -07:00
2012-03-23 13:18:57 +01:00
2012-08-20 14:51:24 -07:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2012-05-31 17:49:32 -07:00
2012-10-19 18:51:17 -07:00
2012-07-31 18:42:40 -07:00
2012-10-09 16:22:14 +09:00
2012-09-13 16:47:34 +02:00
2012-10-06 03:05:31 +09:00
2012-09-24 12:38:06 -04:00
2012-10-09 21:27:14 +02:00
2012-02-24 10:05:59 +01:00
2012-09-18 01:01:32 -07:00
2012-05-03 03:28:41 -07:00
2011-10-31 09:20:12 -04:00
2012-09-18 01:01:37 -07:00
2011-10-31 09:20:12 -04:00
2012-09-18 01:01:37 -07:00
2011-11-06 19:44:47 -08:00
2012-04-07 16:55:51 -07:00
2011-12-21 10:07:39 +01:00
2012-08-13 17:01:07 +02:00
2012-10-02 09:54:49 -07:00