From patchwork Thu Jul 9 12:33:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 34805 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n69CY0NJ000400 for ; Thu, 9 Jul 2009 12:34:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759139AbZGIMd7 (ORCPT ); Thu, 9 Jul 2009 08:33:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759040AbZGIMd7 (ORCPT ); Thu, 9 Jul 2009 08:33:59 -0400 Received: from mx2.redhat.com ([66.187.237.31]:52976 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756240AbZGIMd6 (ORCPT ); Thu, 9 Jul 2009 08:33:58 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n69CXwXM006888 for ; Thu, 9 Jul 2009 08:33:58 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n69CXvpv021410; Thu, 9 Jul 2009 08:33:57 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n69CXtrd003381; Thu, 9 Jul 2009 08:33:56 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id D4FB418D47C; Thu, 9 Jul 2009 15:33:54 +0300 (IDT) From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH] IRQ was moved to its own lock. Date: Thu, 9 Jul 2009 15:33:54 +0300 Message-Id: <1247142834-16993-4-git-send-email-gleb@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Gleb Natapov --- arch/ia64/kvm/kvm-ia64.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c index 421c3a4..0ad09f0 100644 --- a/arch/ia64/kvm/kvm-ia64.c +++ b/arch/ia64/kvm/kvm-ia64.c @@ -985,10 +985,10 @@ long kvm_arch_vm_ioctl(struct file *filp, goto out; if (irqchip_in_kernel(kvm)) { __s32 status; - mutex_lock(&kvm->lock); + mutex_lock(&kvm->irq_lock); status = kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irq_event.irq, irq_event.level); - mutex_unlock(&kvm->lock); + mutex_unlock(&kvm->irq_lock); if (ioctl == KVM_IRQ_LINE_STATUS) { irq_event.status = status; if (copy_to_user(argp, &irq_event,