|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
Re: [Xen-ia64-devel] [PATCH 6/12]MCA handler support for Xen/ia64 TAKE 2
On Fri, 2006-09-22 at 19:33 +0900, SUZUKI Kazuhiro wrote:
> [6/12] Add sal emulation.[mca-fw_emul.patch]
> case SAL_GET_STATE_INFO:
...
> +
> + spin_lock_irqsave(&sal_queue_lock, flags);
> +
...
> + ret = smp_call_function_single(e->cpuid,
> get_state_info_on, &arg, 0, 1);
Both SAL_GET_STATE_INFO and SAL_CLEAR_STATE_INFO use
smp_call_function_single() with interrupts disabled. This is dangerous
and can lead to deadlocks. Imagine if two processors called
smp_call_function_single() with interrupts disabled, possibly from
unrelated code paths. One processor would get the call_lock and send an
IPI to the second processor. However, the second processor is spinning
trying to get the call_lock with interrupts disabled.... hang. Thanks,
Alex
--
Alex Williamson HP Open Source & Linux Org.
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-ia64-devel] [PATCH 4/12]MCA handler support for Xen/ia64 TAKE 2, (continued)
- [Xen-ia64-devel] [PATCH 4/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
- [Xen-ia64-devel] [PATCH 2/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
- [Xen-ia64-devel] [PATCH 3/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
- [Xen-ia64-devel] [PATCH 5/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
- [Xen-ia64-devel] [PATCH 8/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
- [Xen-ia64-devel] [PATCH 7/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
- [Xen-ia64-devel] [PATCH 10/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
- [Xen-ia64-devel] [PATCH 6/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
- Re: [Xen-ia64-devel] [PATCH 6/12]MCA handler support for Xen/ia64 TAKE 2,
Alex Williamson <=
- [Xen-ia64-devel] [PATCH 9/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
- [Xen-ia64-devel] [PATCH 12/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
[Xen-ia64-devel] [PATCH 11/12]MCA handler support for Xen/ia64 TAKE 2, SUZUKI Kazuhiro
|
|
|
|
|