Jan Kara
608873cacb
printk: release lockbuf_lock before calling console_trylock_for_printk()
...
There's no reason to hold lockbuf_lock when entering
console_trylock_for_printk().
The first thing this function does is to call down_trylock(console_sem)
and if that fails it immediately unlocks lockbuf_lock. So lockbuf_lock
isn't needed for that branch. When down_trylock() succeeds, the rest of
console_trylock() is OK without lockbuf_lock (it is called without it
from other places), and the only remaining thing in
console_trylock_for_printk() is can_use_console() call. For that call
console_sem is enough (it iterates all consoles and checks CON_ANYTIME
flag).
So we drop logbuf_lock before entering console_trylock_for_printk() which
simplifies the code.
[akpm@linux-foundation.org: fix have_callable_console() comment]
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-04 16:54:16 -07:00
..
2014-04-18 14:20:48 +02:00
2014-06-03 13:18:00 -07:00
2013-11-13 12:09:34 +09:00
2014-04-28 12:20:00 +02:00
2014-06-03 14:00:15 -07:00
2014-06-03 23:13:00 +02:00
2014-06-04 16:54:16 -07:00
2014-06-03 12:57:53 -07:00
2014-06-03 23:10:15 +02:00
2014-04-15 20:26:58 +02:00
2014-05-02 23:12:42 -04:00
2013-12-10 18:21:34 +00:00
2013-05-04 14:57:58 -04:00
2014-02-18 11:17:17 +01:00
2014-02-18 11:17:17 +01:00
2014-04-24 13:44:54 -04:00
2014-03-20 10:10:53 -04:00
2014-04-12 12:38:53 -07:00
2014-04-12 12:38:53 -07:00
2014-06-04 16:54:14 -07:00
2013-12-20 12:25:45 -08:00
2014-06-04 16:54:15 -07:00
2014-05-13 11:28:30 -04:00
2014-05-27 14:33:17 -07:00
2014-04-02 12:51:41 -07:00
2013-05-01 17:29:18 -04:00
2014-05-05 16:07:46 -07:00
2014-06-04 16:54:14 -07:00
2014-06-04 16:54:08 -07:00
2013-11-13 12:09:12 +09:00
2013-11-09 00:16:23 -05:00
2014-06-04 16:54:15 -07:00
2014-06-04 16:54:03 -07:00
2014-02-13 18:13:22 -08:00
2014-06-04 16:54:01 -07:00
2013-12-19 13:50:32 -05:00
2014-02-02 14:09:12 -08:00
2014-06-03 12:57:53 -07:00
2014-04-03 16:21:05 -07:00
2014-06-03 13:18:00 -07:00
2014-06-04 16:54:15 -07:00
2014-02-21 21:49:07 +01:00
2013-10-19 19:45:35 -04:00
2014-04-07 16:36:11 -07:00
2013-11-15 09:32:22 +09:00
2013-05-28 08:50:00 +02:00
2014-05-28 13:24:26 +10:00
2014-04-18 14:20:48 +02:00
2013-11-13 12:09:26 +09:00
2014-04-25 12:00:49 -07:00
2014-06-04 16:53:51 -07:00
2014-06-04 16:54:15 -07:00
2014-03-31 14:13:25 -07:00
2013-10-25 17:15:18 -04:00
2013-09-25 17:17:01 +01:00
2014-05-01 10:35:01 -07:00
2014-02-26 06:35:13 -08:00
2013-09-07 14:35:32 -07:00
2013-12-05 21:28:42 +08:00
2014-04-07 16:36:08 -07:00
2013-12-04 14:09:46 +10:30
2014-04-02 16:20:21 -07:00
2013-09-30 14:31:03 -07:00
2013-12-09 16:56:29 +01:00
2014-04-07 14:55:46 -07:00
2014-03-06 15:35:10 +01:00
2013-06-18 11:32:10 -05:00
2014-06-04 16:54:15 -07:00
2014-04-12 14:49:50 -07:00
2014-06-04 16:54:15 -07:00
2014-05-23 10:47:21 -06:00
2014-04-16 15:25:53 -04:00
2014-06-04 16:54:14 -07:00
2014-02-24 14:47:15 -08:00
2013-07-14 19:36:59 -04:00
2014-05-22 11:36:10 +02:00
2014-06-04 16:54:15 -07:00
2014-06-04 16:54:14 -07:00
2014-05-22 11:16:36 +02:00
2013-11-13 12:09:33 +09:00
2014-04-25 12:00:49 -07:00
2013-12-10 18:25:28 +00:00
2013-12-10 18:25:28 +00:00
2013-09-11 15:58:27 -07:00
2013-11-19 16:39:05 -05:00
2013-06-19 12:58:42 +02:00
2014-04-30 13:46:17 +02:00
2014-05-14 09:46:30 -07:00
2014-06-04 16:54:15 -07:00
2013-08-30 23:44:11 -07:00
2014-02-24 14:47:15 -08:00
2014-04-14 16:03:02 -07:00
2014-06-04 16:54:16 -07:00
2014-06-04 16:54:15 -07:00
2013-08-30 23:44:11 -07:00
2014-04-18 16:40:08 -07:00
2013-06-19 12:58:42 +02:00
2014-05-22 10:28:56 +02:00