Prarit Bhargava
ee527cd3a2
Use stop_machine_run in the Intel RNG driver
...
Replace call_smp_function with stop_machine_run in the Intel RNG driver.
CPU A has done read_lock(&lock)
CPU B has done write_lock_irq(&lock) and is waiting for A to release the lock.
A third CPU calls call_smp_function and issues the IPI. CPU A takes CPU
C's IPI. CPU B is waiting with interrupts disabled and does not see the
IPI. CPU C is stuck waiting for CPU B to respond to the IPI.
Deadlock.
The solution is to use stop_machine_run instead of call_smp_function
(call_smp_function should not be called in situations where the CPUs may be
suspended).
[haruo.tomita@toshiba.co.jp: fix a typo in mod_init()]
[haruo.tomita@toshiba.co.jp: fix memory leak]
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Cc: Jan Beulich <jbeulich@novell.com>
Cc: "Tomita, Haruo" <haruo.tomita@toshiba.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:00 -07:00
..
2007-05-05 14:55:20 -07:00
2007-05-07 12:24:07 -07:00
2007-05-08 11:15:00 -07:00
2007-02-21 11:18:26 -08:00
2007-05-08 11:14:58 -07:00
2007-02-20 17:10:14 -08:00
2007-05-02 19:02:35 -07:00
2007-02-17 18:57:09 +01:00
2007-05-02 19:02:35 -07:00
2007-05-02 19:02:35 -07:00
2006-10-03 17:59:17 +01:00
2007-02-11 11:18:07 -08:00
2007-02-09 17:08:57 +00:00
2006-10-05 15:10:12 +01:00
2007-04-26 22:24:31 +10:00
2006-12-13 09:05:58 -08:00
2006-12-08 08:28:44 -08:00
2007-03-05 07:57:50 -08:00
2006-12-07 08:39:41 -08:00
2007-03-08 01:10:30 +00:00
2007-02-12 09:48:30 -08:00
2007-02-14 08:09:54 -08:00
2007-02-14 08:09:54 -08:00
2007-02-12 09:48:30 -08:00
2006-10-05 15:10:12 +01:00
2006-07-03 15:26:59 -07:00
2007-03-05 07:57:53 -08:00
2006-10-04 07:55:13 -07:00
2006-12-08 08:28:57 -08:00
2007-02-12 09:48:45 -08:00
2007-03-27 09:05:15 -07:00
2006-11-22 14:57:56 +00:00
2007-02-16 08:14:00 -08:00
2007-02-14 08:09:59 -08:00
2007-02-07 14:03:21 +11:00
2007-05-08 11:14:59 -07:00
2006-07-13 18:53:32 +10:00
2007-04-27 15:51:56 +10:00
2006-07-13 18:53:32 +10:00
2007-04-27 15:51:56 +10:00
2006-12-08 08:28:57 -08:00
2007-04-27 15:51:56 +10:00
2006-07-03 15:26:59 -07:00
2006-07-03 15:26:59 -07:00
2007-02-11 10:51:26 -08:00
2007-02-11 10:51:26 -08:00
2007-05-07 12:13:04 -07:00
2007-04-12 01:30:52 -04:00
2007-03-17 01:03:26 +00:00
2007-02-20 17:11:55 +00:00
2006-12-13 09:05:58 -08:00
2007-05-07 12:13:04 -07:00
2007-02-12 09:48:45 -08:00
2007-04-17 16:36:27 -07:00
2006-12-07 08:39:35 -08:00
2006-12-07 08:39:35 -08:00
2007-02-11 10:51:30 -08:00
2007-02-12 09:48:45 -08:00
2007-04-24 08:23:07 -07:00
2007-02-11 10:51:29 -08:00
2007-04-24 08:23:08 -07:00
2007-02-11 10:51:25 -08:00
2006-06-30 19:25:36 +02:00
2007-02-12 09:48:30 -08:00
2007-02-12 09:48:32 -08:00
2006-12-08 08:28:44 -08:00
2007-02-14 08:09:54 -08:00
2007-02-12 09:48:30 -08:00
2006-10-05 15:10:12 +01:00
2007-02-14 08:09:54 -08:00
2006-09-29 09:18:05 -07:00
2006-12-08 08:28:44 -08:00
2007-02-14 08:09:54 -08:00
2007-04-25 22:28:25 -07:00
2007-02-11 10:51:34 -08:00
2007-02-11 10:51:26 -08:00
2007-02-12 09:48:30 -08:00
2007-02-14 08:09:59 -08:00
2006-09-29 09:18:06 -07:00
2006-09-29 09:18:12 -07:00
2007-02-14 08:09:54 -08:00
2007-02-11 10:51:28 -08:00
2006-10-05 15:10:12 +01:00
2006-10-05 15:10:12 +01:00
2006-01-26 13:32:26 -08:00
2007-04-28 22:13:34 -04:00
2007-02-12 09:48:30 -08:00
2006-12-08 08:28:59 -08:00
2006-12-13 09:05:49 -08:00
2006-12-08 08:28:59 -08:00
2007-02-12 09:48:30 -08:00
2007-02-12 09:48:30 -08:00
2007-02-12 09:48:30 -08:00
2007-02-16 08:13:59 -08:00
2006-12-08 08:28:44 -08:00
2006-12-08 08:28:44 -08:00
2007-02-14 08:09:54 -08:00
2007-02-14 08:09:54 -08:00
2007-05-07 12:12:53 -07:00
2007-02-11 10:51:32 -08:00
2007-02-14 08:09:54 -08:00
2006-12-20 16:37:48 +11:00
2007-02-12 09:48:45 -08:00
2007-02-14 08:09:54 -08:00
2007-01-23 18:26:47 +00:00
2007-04-02 10:06:09 -07:00
2007-03-16 19:25:06 -07:00