diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-04-23 14:03:38 -0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-05-13 01:23:55 -0300 |
commit | 46a47b1ed118cda1a08b7f6077b837a00fbc112b (patch) | |
tree | d86686ebd47f9e5751b91121926ddbf6917e39a6 /virt/kvm/ioapic.h | |
parent | be835674b55324c1abe973b15343c3663910c620 (diff) | |
download | linux-46a47b1ed118cda1a08b7f6077b837a00fbc112b.tar.bz2 |
KVM: convert ioapic lock to spinlock
kvm_set_irq is used from non sleepable contexes, so convert ioapic from
mutex to spinlock.
KVM-Stable-Tag.
Tested-by: Ralf Bonenkamp <ralf.bonenkamp@swyx.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm/ioapic.h')
-rw-r--r-- | virt/kvm/ioapic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/ioapic.h b/virt/kvm/ioapic.h index 8a751b78a430..0b190c34ccc3 100644 --- a/virt/kvm/ioapic.h +++ b/virt/kvm/ioapic.h @@ -45,7 +45,7 @@ struct kvm_ioapic { struct kvm_io_device dev; struct kvm *kvm; void (*ack_notifier)(void *opaque, int irq); - struct mutex lock; + spinlock_t lock; DECLARE_BITMAP(handled_vectors, 256); }; |